Warning: popen() has been disabled for security reasons in OS/Guess.php on line 241

  今天使用pecl install swoole命令编译安装swoole的时候提示:Warning: popen() has been disabled for security reasons in OS/Guess.php on line 241这个错误

  心头一颤,赶紧百度知一下,说是在php.ini里将popen函数禁用了,这里总结一下,以免以后再遇到后手足无措

  解决办法:

  找到php.ini

  打开后找到

  这里面是被禁用的函数,需要哪一个,删掉

  然后保存退出

  执行/etc/init.d/php-fpm restart重启一下就OK

原文地址:https://www.cnblogs.com/lxhyty/p/11237433.html