/usr/local/nginx/conf/nginx.conf报错是配置文件有错。
1。查看配置文件的ip与端口是否与服务器的一致。
2.检查nginx的状态
[root@******************* /]# /usr/local/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
You have new mail in /var/spool...