workerman启动失败

billy

截图

每次启动后,提示成功,但是运行status,又提示not run
再次启动就提示端口被占用,请问这个问题有人遇到过吗?

6593 2 0
2个回答

billy

[root@localhost Chat]# php start.php start -d
Workerman[start.php] start in DAEMON mode
pcntl_signal() has been disabled for security reasons in file /www/wwwroot/hbcloud/hbcloud2/admin/Chat/vendor/workerman/workerman/Worker.php on line 1023
pcntl_signal() has been disabled for security reasons in file /www/wwwroot/hbcloud/hbcloud2/admin/Chat/vendor/workerman/workerman/Worker.php on line 1025
pcntl_signal() has been disabled for security reasons in file /www/wwwroot/hbcloud/hbcloud2/admin/Chat/vendor/workerman/workerman/Worker.php on line 1027
pcntl_signal() has been disabled for security reasons in file /www/wwwroot/hbcloud/hbcloud2/admin/Chat/vendor/workerman/workerman/Worker.php on line 1029
pcntl_signal() has been disabled for security reasons in file /www/wwwroot/hbcloud/hbcloud2/admin/Chat/vendor/workerman/workerman/Worker.php on line 1031
pcntl_signal() has been disabled for security reasons in file /www/wwwroot/hbcloud/hbcloud2/admin/Chat/vendor/workerman/workerman/Worker.php on line 1033
pcntl_signal() has been disabled for security reasons in file /www/wwwroot/hbcloud/hbcloud2/admin/Chat/vendor/workerman/workerman/Worker.php on line 1035
-------------------------------------------- WORKERMAN --------------------------------------------
Workerman version:3.5.18 PHP version:5.4.45
--------------------------------------------- WORKERS ---------------------------------------------
proto user worker listen processes status
tcp root HbCloudWorker none 4 [OK]
tcp root HbCloudWorker websocket://0.0.0.0:8282 4 [OK]
tcp root Register text://0.0.0.0:1238 1 [OK]

Input "php start.php stop" to stop. Start success.

[root@localhost Chat]# php start.php status
Workerman[start.php] status
[root@localhost Chat]# php start.php status
Workerman[start.php] status
Workerman[start.php] not run

  • 暂无评论
智佳思远

pcntl_signal 被php.ini仅用了。
运行 php --ini 找到 php.ini文件的位置
打开php.ini,找到disable_functions选项,把pcntl_signal从里面删除掉。

话说,网上搜下 xxxx has been disabled for security reasons 应该有不少答案的

  • billy 2019-12-30

    这个我已经查过了,没有禁用

  • 智佳思远 2019-12-30

    提示不会骗人。你运行命令 php --ini ,找到实际使用的php.ini文件,打开文件找

  • billy 2019-12-30

    没有注意这个提示信息,以为提示启动成功就成功了。这是我的禁用函数passthru,system,chroot,chgrp,chown,popen,proc_ope n,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru 看着也没有这个方法

  • 智佳思远 2019-12-30

    你php.ini文件找错了

  • billy 2019-12-30

    我机器上面装了三个不同版本的php,只要有一个禁用了,无论用那个版本的php都不行,我全部去掉就ok了,谢谢了。

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