执行:sudo systemctl start php-fpm 后
Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details.
按照提示输入 systemctl status php-fpm.service
错误代码:
systemctl status php-fpm.service
● php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-06-08 17:57:03 UTC; 8s ago
Process: 1978 ExecStart=/usr/sbin/php-fpm --nodaemonize --fpm-config /etc/php-fpm.conf (code=exited, status=78)
Main PID: 1978 (code=exited, status=78)
Jun 08 17:57:03 servername systemd[1]: Starting The PHP FastCGI Process Manager...
Jun 08 17:57:03 servername php-fpm[1978]: [08-Jun-2018 17:57:03] ERROR: [pool www] cannot get...nx'
Jun 08 17:57:03 servername php-fpm[1978]: [08-Jun-2018 17:57:03] ERROR: FPM initialization failed
Jun 08 17:57:03 servername systemd[1]: php-fpm.service: main process exited, code=exited, sta...n/a
Jun 08 17:57:03 servername systemd[1]: Failed to start The PHP FastCGI Process Manager.
Jun 08 17:57:03 servername systemd[1]: Unit php-fpm.service entered failed state.
Jun 08 17:57:03 servername systemd[1]: php-fpm.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
怎么办?请教同学们.
环境:openresty php7 mysql centos7
yum install php71w-fpm
Package php71w-fpm-7.1.17-1.w7.x86_64 already installed and latest version Nothing to do
error.log 的错误提示:
2018/06/08 18:14:23 [error] 825#825: *47 connect() failed (111: Connection refused) while connecting to upstream
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.