Job for php-fpm.service failed because the control process exited with error code. See "systemctl st

时间:2022-10-27 23:11:40

centos7.2环境下安装php5.6.17。
启动失败。

  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.


Job for php-fpm.service failed because the control process exited with error code. See "systemctl st

查看错误提示:cannot get uid for user 'www'

查看#id www 
提示id:www:no such user


解决方案:执行以下语句
 curl -s https://raw.githubusercontent.com/oscm/shell/master/os/user/www.sh | bash 


再次查看#id www
uid=80(www) gid=80(www) groups=80(www)


启动php-fpm成功
#systemctl start php-fpm.service