[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  ,如果错误,则修改配置文件

最新文章

  1. xml html entity 列表
  2. 在.NET Core 1.0 RC2 上 运行 Orchard2
  3. Apache rewrite
  4. C#的选择语句练习
  5. 态势感知 > 技术运维问题
  6. IMP-00008: unrecognized statement in the export file: string的问题分析
  7. OpenStack运维(三):OpenStack存储节点和配置管理
  8. MySQL5.7.20安装过程报错CMake Error at cmake/boost.cmake:81 (MESSAGE):
  9. signal() 和 sigaction()
  10. 《Spring实战》学习笔记-第五章:构建Spring web应用
  11. springmvc+logback项目的日志搭建
  12. eclipse能正常启动tomcat,但是网页访问不了
  13. C语言 · 征税程序
  14. jenkins API
  15. count++线程安全与 synchronized对性能影响的测试
  16. VS2013 UML 如何复制文件
  17. C#设计模式系列:抽象工厂模式(AbstractFactory)
  18. axios中的qs
  19. go-互斥锁及原子函数
  20. 剑指offer-基本思想学习(未包括代码)

热门文章

  1. mybatis之注解式开发之关联查询
  2. 1.display:flex布局笔记
  3. callback源码分析——callback_iter和callback
  4. html5-新元素新布局模板
  5. grad-cam 、cam 和热力图,基于keras的实现
  6. NSThread(II)
  7. python: ImportError: cannot import name 'Style' from 'openpyxl.styles' 解决方法
  8. python 序列化,反序列化
  9. Dirichlet分布深入理解
  10. pyspider源码解读--调度器scheduler.py