Error accessing Nginx published Web page

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.