workerman开机自启动必导致502 及php7启动失败

viqecel

我是wdcp,CentOS6.9操作系统:2.6.32-696.el6.x86_64
修改修改 /etc/rc.d/rc.local 文件后
即在下面增加/usr/local/bin/php /home/wwwroot/game_alixinyuxaun_cn/public_html/php_server/start.php start -d
后,,重启就会导致502,发现php7没有随着机器一起启动.然后删除上面一行代码后,重启,发现再也回不到以前了.只能重装系统才行.

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
stty -echo -F /dev/ttyS0
touch /var/lock/subsys/local
nohup /root/centos &
/www/wdlinux/wdcp/phps/start.sh
/usr/local/bin/php /home/wwwroot/game_alixinyuxaun_cn/public_html/php_server/start.php start -d
3066 2 0
2个回答

viqecel

他们西部数码的技术部也解决不了.问题.难道是起码workerman时,其它依赖没有事先启动.导致出错吗?关键是去掉代码后,还是没法恢复.  这是没法理解了

  • 暂无评论
six

502一般是php-fpm没启动吧。与workerman开机自启动或者workerman本身没关系。workerman是基于php-cli的,不是php-fpm

  • viqecel 2019-02-04

    好复杂.但是新装的系统,加入自动启动代码就出问题,会是什么原因.我上面的自启动命令本身没问题吧

年代过于久远,无法发表回答
🔝