新手,在centOS中下载版本,运行出现如下错误,请指教

wangshujun
# cd /data/wwwroot/Soket
# ls
Applications  composer.json  start.php  vendor
# php start.php start -d
Workerman start in DAEMON mode
PHP Warning:  stream_socket_server() has been disabled for security reasons in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php on line 1469

Warning: stream_socket_server() has been disabled for security reasons in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php on line 1469
PHP Fatal error:  Uncaught exception 'Exception' in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php:1471
Stack trace:
#0 /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php(534): Workerman\Worker->listen()
#1 /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php(427): Workerman\Worker::initWorkers()
#2 /data/wwwroot/Soket/start.php(37): Workerman\Worker::runAll()
#3 {main}
  thrown in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php on line 1471

Fatal error: Uncaught exception 'Exception' in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php:1471
Stack trace:
#0 /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php(534): Workerman\Worker->listen()
#1 /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php(427): Workerman\Worker::initWorkers()
#2 /data/wwwroot/Soket/start.php(37): Workerman\Worker::runAll()
#3 {main}
  thrown in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php on line 1471
# # cd /data/wwwroot/Soket
-bash: [root@iZ8vb11c0njvq4swut8rp7Z: command not found
# ls
Applications  composer.json  start.php  vendor
# php start.php start -d
Workerman start in DAEMON mode
PHP Warning:  stream_socket_server() has been disabled for security reasons in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php on line 1469

Warning: stream_socket_server() has been disabled for security reasons in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php on line 1469
PHP Fatal error:  Uncaught exception 'Exception' in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php:1471
# # ls
-bash: [root@iZ8vb11c0njvq4swut8rp7Z: command not found
# Applications  composer.json  start.php  vendor
-bash: Applications: command not found
# # php start.php start -d
-bash: [root@iZ8vb11c0njvq4swut8rp7Z: command not found
# Workerman start in DAEMON mode
-bash: Workerman: command not found
# PHP Warning:  stream_socket_server() has been disabled for security reasons in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php on line 1469
-bash: syntax error near unexpected token `('
#
# Warning: stream_socket_server() has been disabled for security reasons in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php on line 1469
-bash: syntax error near unexpected token `('
# PHP Fatal error:  Uncaught exception 'Exception' in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php:1471
-bash: PHP: command not found
# Stack trace:
-bash: Stack: command not found
# #0 /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php(534): Workerman\Worker->listen()
# #1 /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php(427): Workerman\Worker::initWorkers()
# #2 /data/wwwroot/Soket/start.php(37): Workerman\Worker::runAll()
# #3 {main}
#   thrown in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php on line 1471
-bash: thrown: command not found
#
# Fatal error: Uncaught exception 'Exception' in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php:1471
-bash: Fatal: command not found
# Stack trace:
-bash: Stack: command not found
# #0 /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php(534): Workerman\Worker->listen()
# #1 /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php(427): Workerman\Worker::initWorkers()
# #2 /data/wwwroot/Soket/start.php(37): Workerman\Worker::runAll()
# #3 {main}
#   thrown in /data/wwwroot/Soket/vendor/workerman/workerman/Worker.php on line 1471
-bash: thrown: command not found
3172 2 0
2个回答

wangshujun

Function stream_socket_server may be disabled. Please check disable_functions in php.ini

  • 暂无评论
six

stream_socket_server 函数被你的php.ini禁用了。

解决方法

1、运行php --ini 找到php.ini文件

2、打开php.ini找到disable_functions一项,将stream_socket_server禁用项删掉

http://doc.workerman.net/315234

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