Nginx connect() failed error

后端 未结 5 1571
生来不讨喜
生来不讨喜 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:15

    For me the problem was my php-fpm service wasn't running. You can check it by running:

    service php-fpm status
    

    and start it by running

    service php-fpm start
    

    Sometimes php-fpm might have broken instances running, preventing a restart. This command is a clean way to clear them out and restart php-fpm

    killall -9 php-fpm; service php-fpm restart
    

提交回复
热议问题