在Ubuntu 14.04 x64上新创建运行
PHP-FPM的LEMP堆栈.试图访问我的webroot中的一些PHP.浏览器显示502 Bad Gateway和Nginx错误日志显示以下内容(我的IP和生产IP被删除):
TIME [error] 22838#0: *7 connect() failed (111: Connection refused) while connecting to upstream, client: [my personal IP], server: [production server IP], request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "[production server IP]"
要确定PHP-FPM是否正在运行,我执行:
ps -waux | grep php5
我回来回应:
root 22930 0.0 0.4 327432 16324 ? Ss 10:10 0:00 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
如何确定运行PHP-FPM的端口或为什么它不在该端口上运行?谢谢.