linux无法重启php服务怎么办
2022-12-02 09:01:16
109
{{single.collect_count}}

linux无法重启php服务的解决办法:1、通过“/etc/init.d/php-fpm stop”关闭php-fpm;2、通过“echo "nohup /usr/sbin/php-fpm -R >/dev/...”加入开机启动即可。

Linux系统运维及项目正式上线:进入学习

本文操作环境:centos 6.5系统、PHP7.1版、DELL G3电脑

linux无法重启php服务怎么办?

linux中root无法启动php-fpm问题解决办法:

centos 6.5 64位的机器,用yum装的php-fpm,因为特殊原因需要用root账号启动php-fpm,但是发现,启动不了。

1,修改user和group

# vim /etc/php-fpm.d/www.conf ; RPM: apache Choosed to be able to access some dir as httpduser = root//改为root; RPM: Keep a group allowed to write in log dir.group = root//改为root
登录后复制

重启php-fpm时,报以下错误

ERROR: [pool www] please specify user and group other than root[09-Jan-2015 16:54:26] ERROR: FPM initialization failed
登录后复制

解决办法:

# /etc/init.d/php-fpm stop //关闭php-fpm# nohup /usr/sbin/php-fpm -R >/dev/null 2>&1 &# echo "nohup /usr/sbin/php-fpm -R >/dev/null 2>&1 &" >> /etc/rc.local//加入开机启动
登录后复制

推荐学习:《PHP视频教程

以上就是linux无法重启php服务怎么办的详细内容,更多请关注php中文网其它相关文章!

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}