Linux系统可以使用以下脚本测试本机PHP环境是否满足WorkerMan运行要求 。
报错
[root@localhost ~]# curl -Ss http://www.workerman.net/check.php | php
PHP Version >= 5.3.3
Extension pcntl check
Extension posix check
Function stream_socket_server may be disabled. Please check disable_functions in php.ini
see http://doc.workerman.net/faq/disable-function-check.html
解决方案
打开php.ini
搜索一下disable_functions
在这行前面加分号(;),或者把提示没有的函数拿掉即可