workerman启动时报错无法启动使用,大神帮忙看看

huang34654
root@VM_0_16_centos ~]# php /www/wwwroot/jyycm/addons/meepo_xianchang/template/mobile/chat/start.php start -d
PHP Warning:  PHP Startup: Unable to load dynamic library '/www/server/php/56/lib/php/extensions/no-debug-non-zts-20131226/event.so' - /www/server/php/56/lib/php/extensions/no-debug-non-zts-20131226/event.so: cannot open shared object file: No such file or directory in Unknown on line 0
Workerman start in DAEMON mode
pcntl_fork() has been disabled for security reasons in file /www/wwwroot/jyycm/addons/meepo_xianchang/template/mobile/chat/vendor/workerman/workerman/Worker.php on line 943
PHP Fatal error:  Uncaught exception 'Exception' with message 'setsid fail' in /www/wwwroot/jyycm/addons/meepo_xianchang/template/mobile/chat/vendor/workerman/workerman/Worker.php:950
Stack trace:
#0 /www/wwwroot/jyycm/addons/meepo_xianchang/template/mobile/chat/vendor/workerman/workerman/Worker.php(383): Workerman\Worker::daemonize()
#1 /www/wwwroot/jyycm/addons/meepo_xianchang/template/mobile/chat/start.php(24): Workerman\Worker::runAll()
#2 {main}
  thrown in /www/wwwroot/jyycm/addons/meepo_xianchang/template/mobile/chat/vendor/workerman/workerman/Worker.php on line 950
Fatal error: Uncaught exception 'Exception' with message 'setsid fail' in /www/wwwroot/jyycm/addons/meepo_xianchang/template/mobile/chat/vendor/workerman/workerman/Worker.php:950
Stack trace:
#0 /www/wwwroot/jyycm/addons/meepo_xianchang/template/mobile/chat/vendor/workerman/workerman/Worker.php(383): Workerman\Worker::daemonize()
#1 /www/wwwroot/jyycm/addons/meepo_xianchang/template/mobile/chat/start.php(24): Workerman\Worker::runAll()
#2 {main}
  thrown in /www/wwwroot/jyycm/addons/meepo_xianchang/template/mobile/chat/vendor/workerman/workerman/Worker.php on line 950
#
9094 1 0
1个回答

yongdao35

pcntl_fork() has been disabled for security reasons
 
pcntl_fork 被禁用了。
运行 php --ini 找到php.ini文件
打开 php.ini 找到 disable_function 删除pcntl_fork 

  • 暂无评论
年代过于久远,无法发表回答
×
🔝