命令:nginx -t 查看失败原因: nginx: [emerg] "fastcgi_pass" directive is duplicate in /etc/nginx/sites-enabled/default:61 nginx: configuration file /etc/nginx/nginx.conf test failed 然后找到这样的原因的解决的方法 cd /etc/nginx/site-enabaled/default With php5-cgi alone或者…
Many people are accustomed to start a Nginx web server through init scripts and then they can control the state of the server through service command, such as sudo service nginx restart. But sometimes unobvious config error makes the scripts failed t…