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:
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:
thrown in /www/wwwroot/124.220.0.86/vendor/GatewayWorker/vendor/workerman/workerman/Worker.php on line 1217
[root@VM-12-4-centos GatewayWorker]#
😅
说的很清楚了吧,pcntl_fork系列函数被禁用了
谢谢
pcntl_fork()函数需要删除。
在服务器的php.ini配置文件中 找到disable_functions,把提示中的函数删除,然后重启PHP。
谢谢