初尝 nginx

第一次尝试用 nginx,记录下几个简单命令:

// 启动
start nginx

// 测试并设置配置文件
nginx -t -c conf
ginx.conf

// 修改配置文件后重载
nginx -s reload

// 停止
nginx -s stop

注意:

1、请在 CMD 中执行,不要在 PowerShell 中执行,不知道为啥 start 貌似问题。

2、不要将 nginx 放在中文路径下,会出错。

原文地址:https://www.cnblogs.com/xwgli/p/9774412.html