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

haoduomu

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
3741 2 0
2个回答

haoduomu

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

  • 暂无评论
walkor 打赏

好的

  • 暂无评论
年代过于久远,无法发表回答
×
🔝