关于微信云托管问题

qkhhxkj

现在GatewayWorker的在上面跑起来了,可是有一个问题,就是不知道为什么奇怪的连接上来,又被踢了,
可是这个问题在我本地是没有的

我开始以我本地有连接,可是我关了所有的东西,还是有,到最后,我换了服务器开放的端口还是有

请问有没有大佬部署过关于微信云托管 有没有遇到这样的问题

开始我想着有连接就有吧,可是跑了一会儿,服务器就重启了

12/21 22:53:57
hpreg-002
#903 /app/vendor/workerman/workerman/Worker.php(1856): Workerman\Worker->stop()
12/21 22:53:57
hpreg-002
#904 /app/vendor/workerman/workerman/Worker.php(2435): Workerman\Worker::stopAll()
12/21 22:53:57
hpreg-002
#905 /app/vendor/workerman/workerman/Worker.php(1856): Workerman\Worker->stop()
12/21 22:53:57
hpreg-002
#635 /app/start.php(22): Workerman\Worker::runAll()
12/21 22:53:57
hpreg-002
#636 {main}
12/21 22:53:57
hpreg-002
TypeError: Argument 1 passed to Server\WorldServer::onWorkerStop() must be an instance of Workerman\Connection\TcpConnection, instance of Workerman\Worker given, called in /app/vendor/workerman/workerman/Worker.php on line 2431 and defined in /app/Server/WorldServer.php:74
更多
12/21 22:53:57
hpreg-002
Stack trace:
12/21 22:53:57
hpreg-002
#0 /app/vendor/workerman/workerman/Worker.php(2431): Server\WorldServer->onWorkerStop()
12/21 22:53:57
hpreg-002
#1 /app/vendor/workerman/workerman/Worker.php(1856): Workerman\Worker->stop()
12/21 22:53:57
hpreg-002
#2 /app/vendor/workerman/workerman/Worker.php(2435): Workerman\Worker::stopAll()
12/21 22:53:57
hpreg-002
#3 /app/vendor/workerman/workerman/Worker.php(1856): Workerman\Worker->stop()
12/21 22:53:57
hpreg-002
#4 /app/vendor/workerman/workerman/Worker.php(2435): Workerman\Worker::stopAll()
12/21 22:53:57
hpreg-002
#5 /app/vendor/workerman/workerman/Worker.php(1856): Workerman\Worker->stop()
12/21 22:53:57
hpreg-002
#6 /app/vendor/workerman/workerman/Worker.php(2435): Workerman\Worker::stopAll()
12/21 22:53:57
hpreg-002
#7 /app/vendor/workerman/workerman/Worker.php(1856): Workerman\Worker->stop()
12/21 22:53:57
hpreg-002
#8 /app/vendor/workerman/workerman/Worker.php(2435): Workerman\Worker::stopAll()
12/21 22:53:57
hpreg-002
#9 /app/vendor/workerman/workerman/Worker.php(1856): Workerman\Worker->stop()
12/21 22:53:57
hpreg-002
#10 /app/vendor/workerman/workerman/Worker.php(2435): Workerman\Worker::stopAll()
1350 1 0
1个回答

walkor 打赏

奇怪的连接每隔2秒一次,可能是微信云进行的探测,用来测试服务端是否可用。
服务停止是因为你没有守护进程启动,启动时加-d, php start.php start -d

年代过于久远,无法发表回答
×
🔝