php模式下 运行start.php 报错

weoweo520

当我以hhvm 方式运行 start.php 开启时 没有任何报错 服务也运行正常

但是当我以php start.php start 方式 运行时 立刻报出以下错误

PHP Warning:  stream_socket_server() has been disabled for security reasons in /data/wwwroot/default/GatewayWorker-master/Workerman/Worker.php on line 1307

Warning: stream_socket_server() has been disabled for security reasons in /data/wwwroot/default/GatewayWorker-master/Workerman/Worker.php on line 1307
PHP Fatal error:  Uncaught exception 'Exception' in /data/wwwroot/default/GatewayWorker-master/Workerman/Worker.php:1310
Stack trace:
#0 /data/wwwroot/default/GatewayWorker-master/Workerman/Worker.php(435): Workerman\Worker->listen()
#1 /data/wwwroot/default/GatewayWorker-master/Workerman/Worker.php(348): Workerman\Worker::initWorkers()
#2 /data/wwwroot/default/GatewayWorker-master/start.php(32): Workerman\Worker::runAll()
#3 {main}
  thrown in /data/wwwroot/default/GatewayWorker-master/Workerman/Worker.php on line 1310

Fatal error: Uncaught exception 'Exception' in /data/wwwroot/default/GatewayWorker-master/Workerman/Worker.php:1310
Stack trace:
#0 /data/wwwroot/default/GatewayWorker-master/Workerman/Worker.php(435): Workerman\Worker->listen()
#1 /data/wwwroot/default/GatewayWorker-master/Workerman/Worker.php(348): Workerman\Worker::initWorkers()
#2 /data/wwwroot/default/GatewayWorker-master/start.php(32): Workerman\Worker::runAll()
#3 {main}
  thrown in /data/wwwroot/default/GatewayWorker-master/Workerman/Worker.php on line 1310
4649 2 0
2个回答

weoweo520

我已经找到问题 是因为我的主机 把stream_socket_server 函数 禁用了 。为什么hhvm 下可以呢? 是否workerman 里针对hhvm 使用了另一个函数?

  • 暂无评论
walkor 打赏

你这个问题就像问为什么我的小轿车是没油了,但是我的suv还能跑。两个不同的东西好么?

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