加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

thinkphp 5.0报错pcntl_signal() has been disabled for securit

发布时间:2020-12-14 13:55:48 所属栏目:大数据 来源:网络整理
导读:环境 centos7 thinkphp 5.0 think-worker 1.0.1 Workerman version:3.5.30 PHP version:5.6.9 thinkphp 5.0使用workerman,启动workerman服务端报错 pcntl_signal()hasbeendisabledforsecurityreasonsinfile/www/wwwroot/shop/vendor/workerman/workerman/Wo

环境

centos7

thinkphp 5.0

think-worker 1.0.1

Workerman version:3.5.30

PHP version:5.6.9

thinkphp 5.0使用workerman,启动workerman服务端报错

pcntl_signal() has been disabled for security reasons in file /www/wwwroot/shop/vendor/workerman/workerman/Worker.php on line 1107
pcntl_fork() has been disabled for security reasons in file /www/wwwroot/shop/vendor/workerman/workerman/Worker.php on line 1514

问题原因:pcntl_signal、pcntl_fork 等系列函数被禁用了

解决方案:找到 php.ini 文件并定位到 disable_functions 字段,将其后的 pcntl_signal、pcntl_fork等系列函数删掉。

宝塔面板操作步骤:软件商店(已安装) -> PHP5.6 ->设置-> 禁用函数,将pcntl_signal、pcntl_fork等系列删除即可。

非生产环境,可以将 disable_functions 字段后内容留空。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读