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
问题找到了,是禁用了stream_socket_server函数
好的