php start.php start -d

xuxunjian

Last login: Sat May 21 07:23:08 2022 from 127.0.0.1
[root@VM-12-4-centos ~]# cd /www/wwwroot/124.220.0.86/vendor/GatewayWorker
[root@VM-12-4-centos GatewayWorker]# php start.php start -d
Workerman[start.php] start in DAEMON mode
pcntl_fork() has been disabled for security reasons in file /www/wwwroot/124.220.0.86/vendor/GatewayWorker/vendor/workerman/workerman/Worker.php on line 1210
PHP Fatal error: Uncaught Exception: Setsid fail in /www/wwwroot/124.220.0.86/vendor/GatewayWorker/vendor/workerman/workerman/Worker.php:1217
Stack trace:

0 /www/wwwroot/124.220.0.86/vendor/GatewayWorker/vendor/workerman/workerman/Worker.php(540): Workerman\Worker::daemonize()

1 /www/wwwroot/124.220.0.86/vendor/GatewayWorker/start.php(37): Workerman\Worker::runAll()

2 {main}

thrown in /www/wwwroot/124.220.0.86/vendor/GatewayWorker/vendor/workerman/workerman/Worker.php on line 1217

Fatal error: Uncaught Exception: Setsid fail in /www/wwwroot/124.220.0.86/vendor/GatewayWorker/vendor/workerman/workerman/Worker.php:1217
Stack trace:

0 /www/wwwroot/124.220.0.86/vendor/GatewayWorker/vendor/workerman/workerman/Worker.php(540): Workerman\Worker::daemonize()

1 /www/wwwroot/124.220.0.86/vendor/GatewayWorker/start.php(37): Workerman\Worker::runAll()

2 {main}

thrown in /www/wwwroot/124.220.0.86/vendor/GatewayWorker/vendor/workerman/workerman/Worker.php on line 1217
[root@VM-12-4-centos GatewayWorker]#

2435 3 0
3个回答

胡桃

😅

  • 暂无评论
2548a

说的很清楚了吧,pcntl_fork系列函数被禁用了

salestina

pcntl_fork()函数需要删除。
在服务器的php.ini配置文件中 找到disable_functions,把提示中的函数删除,然后重启PHP。

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