命令: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

linux nginx service nginx restart [fail]

然后找到这样的原因的解决的方法

cd /etc/nginx/site-enabaled/default

linux nginx service nginx restart [fail]

With php5-cgi alone或者with php5-fpm

不要俩个都用就能够了。

于是凝视掉fastcgi_pass 这一行

service nginx restart 就ok了。这应该是上次微信php配置的时候遗留下来的问题。

相关文章:

  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2021-04-23
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-27
  • 2021-11-17
  • 2021-11-13
  • 2021-12-01
相关资源
相似解决方案