DEBUG模式正常,DAEMON模式也成功启动,但是status却是not run

young8704

问题描述

DEBUG模式正常,DAEMON模式也成功启动,但是status却是not run

程序代码

DEBUG模式正常,如下所示

[root@VM-20-191-centos wmserver]# php worker_think.php start
Workerman[worker_think.php] start in DEBUG mode
------------------------------------------- WORKERMAN --------------------------------------------
Workerman version:4.0.19          PHP version:5.4.45
-------------------------------------------- WORKERS ---------------------------------------------
proto   user            worker          listen                      processes    status           
ssl     root            none            websocket://0.0.0.0:1234    1             [OK]            
--------------------------------------------------------------------------------------------------
Press Ctrl+C to stop. Start success.

DAEMON模式也成功启动,如下所示

[root@VM-20-191-centos wmserver]# php worker_think.php start -d
Workerman[worker_think.php] start in DAEMON mode
------------------------------------------- WORKERMAN --------------------------------------------
Workerman version:4.0.19          PHP version:5.4.45
-------------------------------------------- WORKERS ---------------------------------------------
proto   user            worker          listen                      processes    status           
ssl     root            none            websocket://0.0.0.0:1234    1             [OK]            
--------------------------------------------------------------------------------------------------
Input "php worker_think.php stop" to stop. Start success.

status却是not run,实际也无法通信

[root@VM-20-191-centos wmserver]# php worker_think.php status
Workerman[worker_think.php] status 
Workerman[worker_think.php] not run

操作系统及workerman/webman等框架组件具体版本

系统CentOS 7.2
Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.4.16 mod_perl/2.0.9dev Perl/v5.16.3

311 1 0
1个回答

meows

看你是root 用户,应该不是权限问题。
大概率是你master.pid 这个文件丢了,所以出现这个提示。
是不是你把runtime 下面的东西给删了

  • young8704 2023-11-05

    多谢解答。我不确定是不是这个问题,因为时间紧急,我已经重新安装了

🔝