开启的时候报错

q527198615
# php start.php start -d
Workerman start
# PHP Warning:  posix_setsid() has been disabled for security reasons in /home/workerman-chat-master/Workerman/Worker.php on line 547

Warning: posix_setsid() has been disabled for security reasons in /home/workerman-chat-master/Workerman/Worker.php on line 547
PHP Warning:  posix_getuid() has been disabled for security reasons in /home/workerman-chat-master/Workerman/Worker.php on line 342

Warning: posix_getuid() has been disabled for security reasons in /home/workerman-chat-master/Workerman/Worker.php on line 342
PHP Warning:  posix_getpwuid() has been disabled for security reasons in /home/workerman-chat-master/Workerman/Worker.php on line 342

Warning: posix_getpwuid() has been disabled for security reasons in /home/workerman-chat-master/Workerman/Worker.php on line 342
PHP Notice:  Undefined variable: errno in /home/workerman-chat-master/Workerman/Worker.php on line 1001

Notice: Undefined variable: errno in /home/workerman-chat-master/Workerman/Worker.php on line 1001
PHP Notice:  Undefined variable: errmsg in /home/workerman-chat-master/Workerman/Worker.php on line 1001

Notice: Undefined variable: errmsg in /home/workerman-chat-master/Workerman/Worker.php on line 1001
PHP Warning:  stream_socket_server() has been disabled for security reasons in /home/workerman-chat-master/Workerman/Worker.php on line 1001

Warning: stream_socket_server() has been disabled for security reasons in /home/workerman-chat-master/Workerman/Worker.php on line 1001
PHP Notice:  Undefined variable: errmsg in /home/workerman-chat-master/Workerman/Worker.php on line 1004

Notice: Undefined variable: errmsg in /home/workerman-chat-master/Workerman/Worker.php on line 1004
PHP Fatal error:  Uncaught exception 'Exception' in /home/workerman-chat-master/Workerman/Worker.php:1004
Stack trace:
0 /home/workerman-chat-master/Workerman/Worker.php(336): Workerman\Worker->listen()
1 /home/workerman-chat-master/Workerman/Worker.php(267): Workerman\Worker::initWorkers()
2 /home/workerman-chat-master/start.php(17): Workerman\Worker::runAll()
3 {main}
  thrown in /home/workerman-chat-master/Workerman/Worker.php on line 1004

Fatal error: Uncaught exception 'Exception' in /home/workerman-chat-master/Workerman/Worker.php:1004
Stack trace:
0 /home/workerman-chat-master/Workerman/Worker.php(336): Workerman\Worker->listen()
1 /home/workerman-chat-master/Workerman/Worker.php(267): Workerman\Worker::initWorkers()
2 /home/workerman-chat-master/start.php(17): Workerman\Worker::runAll()
3 {main}
  thrown in /home/workerman-chat-master/Workerman/Worker.php on line 1004{{{
3530 2 0
2个回答

q527198615

已经解决 函数被禁止了 汗

  • 暂无评论
walkor

posix_setsid 等函数 被禁用了

1、运行php --ini 命令,看看php.ini文件在哪里
2、在文件中搜索 posix_setsid 关键字,把关键字删掉

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