win10台式主机,双击windows.bat文件报错
webman代码
D:\wwwroot\qiyyy.baidu.com>php windows.php
----------------------- WORKERMAN -----------------------------
Workerman version:4.1.9 PHP version:8.0.28
------------------------ WORKERS -------------------------------
worker listen processes status
webman-qiyyy http://0.0.0.0:16168 2 [ok]
monitor none 1 [ok]
plugin.fly-cms.webman-crontab.webman-crontabtext://0.0.0.0:3666 1 [ok]
plugin.webman.push.serverwebsocket://0.0.0.0:31366 1 [ok]
plugin.webman.gateway-worker.gatewaywebsocket://0.0.0.0:7272 1 [ok]
plugin.webman.gateway-worker.workernone 2 [ok]
plugin.webman.redis-queue.consumernone 8 [ok]
plugin.webman.gateway-worker.registertext://0.0.0.0:1236 1 [ok]
Warning: stream_socket_server(): Unable to connect to tcp://0.0.0.0:31366 (以一种访问权限不允许的方式做了一个访问套接字的尝试 。) in D:\wwwroot\qiyyy.baidu.com\vendor\workerman\workerman\Worker.php on line 2354
Fatal error: Uncaught Exception: 以一种访问权限不允许的方式做了一个访问套接字的尝试。 in D:\wwwroot\qiyyy.baidu.com\vendor\workerman\workerman\Worker.php:2356
Stack trace:
#0 D:\wwwroot\qiyyy.baidu.com\vendor\workerman\workerman\Worker.php(1477): Workerman\Worker->listen()
#1 D:\wwwroot\qiyyy.baidu.com\vendor\workerman\workerman\Worker.php(1399): Workerman\Worker::forkWorkersForWindows()#2 D:\wwwroot\qiyyy.baidu.com\vendor\workerman\workerman\Worker.php(560): Workerman\Worker::forkWorkers()
#3 D:\wwwroot\qiyyy.baidu.com\runtime\windows\start_plugin.webman.push.server.php(23): Workerman\Worker::runAll()
#4 {main}
所有的端口都报同样的错误。
提示不是很明显么..
0.0.0.0只可用于监听IP,不可用于当目标链接IP
其他项目运行正常啊:
Active code page: 65001
D:\wwwroot\webman-yjcm.baidu.com>php windows.php
----------------------- WORKERMAN -----------------------------
Workerman version:4.1.9 PHP version:8.0.28
------------------------ WORKERS -------------------------------
worker listen processes status
webman-yjcm http://0.0.0.0:15100 2 [ok]
plugin.fly-cms.webman-crontab.webman-crontabtext://0.0.0.0:15111 1 [ok]
monitor none 1 [ok]
plugin.webman.push.serverwebsocket://0.0.0.0:15201 1 [ok]
plugin.webman.redis-queue.consumernone 8 [ok]
plugin.webman.gateway-worker.gatewaywebsocket://0.0.0.0:15333 1 [ok]
return [
'enable' => false,
'websocket' => 'websocket://0.0.0.0:31366',
'api' => 'http://0.0.0.0:31355',
'app_key' => 'fnSEwg1b2UAAoHcmbyYlW29SEdyGgw',
'app_secret' => 'FB6Q4f769BJrhDon579UqRJYjx2ezX',
'channel_hook' => 'http://127.0.0.1:16168/plugin/webman/push/hook',
'auth' => '/plugin/webman/push/auth'
];
禁用插件就可以了。不知道啥情况。。
估计31366端口被占用了
telnet了一下没被占用