1.
查看配置文件是否出错
[root@localhost nginx]# ./sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
原文:https://www.cnblogs.com/mm163/p/10803159.html