workerman启动时报错pcntl_fork被禁用

报错信息
pcntl_fork() has been disabled for security reasons in file /xxx/workerman/Worker.php
解决方法
pcntl_fork 被禁用了。
找到php.ini文件并打开
从disable_functions中删除pcntl_fork
重启apache或者nginx

你可能感兴趣的:(PHP,php)