Nginx connect() failed error

后端 未结 5 1567
生来不讨喜
生来不讨喜 2020-12-23 22:53

I don\'t know why I got this error every time I tried to open the page:

2013/04/06 17:52:19 [error] 5040#0: *1 connect() failed (111: Connection refused) whi         


        
5条回答
  •  一生所求
    2020-12-23 23:12

    I found I had this same issue with PHP7 running in Docker on a Debian Jessie (8.3) instance.

    • running command 'ps -aux' showed that php-fpm wasn't running
    • running 'php-fpm -D' brought it up as deamonized process.
    • Rerunning 'ps -aux' showed that php-fpm was indeed running
    • Refreshing my test page showed me the servers PHP info.

    Added 'php-fpm -D' to my start.sh script so that things started every time the container is loaded.

    Hope this helps someone.

提交回复
热议问题