Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Error accessing web page published by nginx

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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:

Nginx's log shows the following error: [root@localhost logs] # cat error.log

2017 connect 06 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 connect 06 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"

The reason is that the PHP service php-fpm is not started

# / application/php/sbin/php-fpm

It is recommended to start the service automatically when you start the server. It is recommended to form the habit of doing this:

[root@localhost/] # vi / etc/rc.local

/ application/php/sbin/php-fpm # add the line

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report