zoukankan      html  css  js  c++  java
  • Job for phpfpm.service failed because the control process exited with error code. See "systemctl status phpfpm.service" and "journalctl xe" for details.

    [root@web01 ~]#  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.

    [root@web01 ~]#  systemctl status php-fpm -l

    ● php-fpm.service - The PHP FastCGI Process Manager

       Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)

       Active: failed (Result: exit-code) since Mon 2019-01-14 19:04:24 CST; 16s ago

      Process: 6892 ExecStart=/usr/sbin/php-fpm --nodaemonize --fpm-config /etc/php-fpm.conf (code=exited, status=78)

     Main PID: 6892 (code=exited, status=78)

    Jan 14 19:04:24 web01 systemd[1]: Starting The PHP FastCGI Process Manager...

    Jan 14 19:04:24 web01 php-fpm[6892]: [14-Jan-2019 19:04:24] ERROR: [pool www] cannot get uid for user 'www'

    Jan 14 19:04:24 web01 php-fpm[6892]: [14-Jan-2019 19:04:24] ERROR: FPM initialization failed

    Jan 14 19:04:24 web01 systemd[1]: php-fpm.service: main process exited, code=exited, status=78/n/a

    Jan 14 19:04:24 web01 systemd[1]: Failed to start The PHP FastCGI Process Manager.

    Jan 14 19:04:24 web01 systemd[1]: Unit php-fpm.service entered failed state.

    Jan 14 19:04:24 web01 systemd[1]: php-fpm.service failed.

    [root@web01 ~]# groupadd -g666 www

    [root@web01 ~]# useradd -u666 -g666 www

    [root@web01 ~]#  systemctl start php-fpm

    [root@web01 ~]# 

    [root@web01 ~]#  systemctl start php-fpmJob for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details.[root@web01 ~]#  systemctl status php-fpm -l● php-fpm.service - The PHP FastCGI Process Manager   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)   Active: failed (Result: exit-code) since Mon 2019-01-14 19:04:24 CST; 16s ago  Process: 6892 ExecStart=/usr/sbin/php-fpm --nodaemonize --fpm-config /etc/php-fpm.conf (code=exited, status=78) Main PID: 6892 (code=exited, status=78)
    Jan 14 19:04:24 web01 systemd[1]: Starting The PHP FastCGI Process Manager...Jan 14 19:04:24 web01 php-fpm[6892]: [14-Jan-2019 19:04:24] ERROR: [pool www] cannot get uid for user 'www'Jan 14 19:04:24 web01 php-fpm[6892]: [14-Jan-2019 19:04:24] ERROR: FPM initialization failedJan 14 19:04:24 web01 systemd[1]: php-fpm.service: main process exited, code=exited, status=78/n/aJan 14 19:04:24 web01 systemd[1]: Failed to start The PHP FastCGI Process Manager.Jan 14 19:04:24 web01 systemd[1]: Unit php-fpm.service entered failed state.Jan 14 19:04:24 web01 systemd[1]: php-fpm.service failed.[root@web01 ~]# groupadd -g666 www[root@web01 ~]# useradd -u666 -g666 www[root@web01 ~]#  systemctl start php-fpm[root@web01 ~]# 

    原因1:开启了httpd

    解决方式:systemctl stop httpd

        systemctl start nginx

    原因2:/etc/nginx/conf.d里的配置文件错误

    解决方式:查看是否是配置文件错误  nginx -t  ,如果错误,则修改配置文件

  • 相关阅读:
    【转】互联网科技大佬奋斗励志故事
    Java RestTemplate 请求参数字符串中有大括号{}的请求正确方法
    【资料最全】在100以内的所有情况,可以被写作三个数的立方和
    一个例子让你懂java里面的守护线程
    java中finally里面的代码一定会执行吗?(try里面做了return呢?)
    什么是mysql索引下推(有些装B面试官会问)
    java中静态变量指向的对象是在jvm那个区域?用图解告诉你。
    偶然发现在java方法中可以定义类
    Java里面的Comparable接口
    leetcode面试题 17.14. 最小K个数(快速排序,只排序一边)
  • 原文地址:https://www.cnblogs.com/lvhanzhi/p/10268502.html
Copyright © 2011-2022 走看看