您好,登錄后才能下訂單哦!
操作系統:CentOS release 6.8 (Final)
Web服務器:nginx-1.12.0
PHP版本:PHP Version 5.6.30
前端頁面顯示下列錯誤:
Nginx的日志顯示如下錯誤:[root@localhost logs]# cat error.log
2017/06/0710:02:42 [error] 2590#0: *132 connect() failed (111: Connection refused) whileconnecting to upstream, client: 192.168.133.1, server: localhost, request:"GET /test.php HTTP/1.1", upstream:"fastcgi://127.0.0.1:9000", host: "192.168.133.128"
2017/06/0710:07:42 [error] 2590#0: *190 connect() failed (111: Connection refused) whileconnecting to upstream, client: 192.168.133.1, server: localhost, request:"GET /index.htm HTTP/1.1", upstream:"fastcgi://127.0.0.1:9000", host: "192.168.133.128"
原因是沒有啟動PHP服務php-fpm
#/application/php/sbin/php-fpm
建議啟動服務器時,即自動啟動該服務,建議養成該操作下習慣:
[root@localhost/]# vi /etc/rc.local
/application/php/sbin/php-fpm #添加該行
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。