我已经按照这个教程进行了nginx的基本安装。
我总是得到错误的网关错误,当我看到我看到的日志:
客户端连接上游时,[error] 3226#0:* 1 connect()失败(111:Connection refused)
这里是我的nginx.conf和我的网站的内容 – 可用/默认
nginx.conf, 默认
我也看到这个错误:
在0.0.0.0:80上冲突的服务器名称“explorable.com”,被忽略
我正在使用Ubuntu 12.04,PHP5-FPM
谢谢!
检查php-fpm是否真的在用ps aux | grep php运行 ps aux | grep php 。 您可以使用/etc/init.d/php-fpm start|stop|restart来启动和停止php-fpm。