浪子追风 发表于 2013-4-19 16:17:14

nginx 重启步骤

修改nginx配置文件后,

先执行:/usr/local/nginx/sbin/nginx -t 检查配置是否正常,

如果显示:the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok

configuration file /usr/local/nginx/conf/nginx.conf test is successful

则正常,否则按错误提示修改配置。

然后

/usr/local/nginx/sbin/nginx -sreload

nginx已经重启成功
页: [1]
查看完整版本: nginx 重启步骤