Operating system: CentOS release 6.8 (Final)
Web Server: nginx-1.12.0
PHP version: PHP version 5.6.30
The front-end page displays the following error:
650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M02/98/15/wKiom1k3ZRjTzBj8AABRk6-8Kes602.jpg-wh_500x0-wm_ 3-wmp_4-s_867198442.jpg "title=" is not named. JPG "alt=" Wkiom1k3zrjtzbj8aabrk6-8kes602.jpg-wh_50 "/>
Nginx The log shows the following error: [[email protected] logs]# cat Error.log
2017/06/0710:02:42 [ERROR] 2590#0: *132 Connect () failed (111:connection refused) whileconnecting to upstream, client:19 2.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:19 2.168.133.1, Server:localhost, Request: "Get/index.htm http/1.1", Upstream: "fastcgi://127.0.0.1:9000", Host: " 192.168.133.128 "
The reason is that PHP service is not started PHP-FPM
#/application/php/sbin/php-fpm
It is recommended that the service be started automatically when the server is started, and it is recommended that you get used to the following:
[[Email protected]/]# vi/etc/rc.local
/APPLICATION/PHP/SBIN/PHP-FPM # Add the row
This article is from the "sky9890" blog, make sure to keep this source http://sky9896.blog.51cto.com/2330653/1932994
Error accessing Nginx published Web page