刚接触,安装了workerman-chat,但是服务端跑起来报错

0

centos,nginx,php环境下,代码都没做改动,直接上传,然后执行


php /data/chat/start.php start

Workerman start in DEBUG mode
PHP Warning: stream_socket_server() has been disabled for security reasons in /data/chat/Workerman/Worker.php on line 1288

Warning: stream_socket_server() has been disabled for security reasons in /data/chat/Workerman/Worker.php on line 1288
PHP Fatal error: Uncaught exception 'Exception' in /data/chat/Workerman/Worker.php:1291
Stack trace:
#0 /data/chat/Workerman/Worker.php(429): Workerman\Worker->listen()
#1 /data/chat/Workerman/Worker.php(342): Workerman\Worker::initWorkers()
#2 /data/chat/start.php(37): Workerman\Worker::runAll()
#3 {main}
thrown in /data/chat/Workerman/Worker.php on line 1291

Fatal error: Uncaught exception 'Exception' in /data/chat/Workerman/Worker.php:1291
Stack trace:
#0 /data/chat/Workerman/Worker.php(429): Workerman\Worker->listen()
#1 /data/chat/Workerman/Worker.php(342): Workerman\Worker::initWorkers()
#2 /data/chat/start.php(37): Workerman\Worker::runAll()
#3 {main}
thrown in /data/chat/Workerman/Worker.php on line 1291
已邀请:

haoduomu - 88800

赞同来自:

问题找到了,是禁用了stream_socket_server函数

walkor

赞同来自:

好的

要回复问题请先登录注册