webman 启动报错

xiashadeqiu

问题描述

启动 windows.bat错误
端口没有被占用(换了多个也不行)
cmd下也是管理员权限

程序代码

windows.bat

报错信息

Workerman version:4.1.15          PHP version:7.4.32
----------------------------------------------- WORKERS ------------------------------------------------
worker                                          listen                              processes   status
webman                                          http://0.0.0.0:8841                 1           [ok]
monitor                                         none                                1           [ok]
PHP Warning:  stream_socket_server(): unable to connect to tcp://0.0.0.0:8841 (以一种访问权限不允许的方式做了一个访问套 接字的尝试。
) in D:\users\xiasha\Desktop\code\php_demo\webman\vendor\workerman\workerman\Worker.php on line 2363

Warning: stream_socket_server(): unable to connect to tcp://0.0.0.0:8841 (以一种访问权限不允许的方式做了一个访问套接字的尝试。
) in D:\users\xiasha\Desktop\code\php_demo\webman\vendor\workerman\workerman\Worker.php on line 2363
PHP Fatal error:  Uncaught Exception: 以一种访问权限不允许的方式做了一个访问套接字的尝试。
 in D:\users\xiasha\Desktop\code\php_demo\webman\vendor\workerman\workerman\Worker.php:2365
Stack trace:
#0 D:\users\xiasha\Desktop\code\php_demo\webman\vendor\workerman\workerman\Worker.php(1486): Workerman\Worker->listen()
#1 D:\users\xiasha\Desktop\code\php_demo\webman\vendor\workerman\workerman\Worker.php(1405): Workerman\Worker::forkWorkersForWindows()
#2 D:\users\xiasha\Desktop\code\php_demo\webman\vendor\workerman\workerman\Worker.php(560): Workerman\Worker::forkWorkers()
#3 D:\users\xiasha\Desktop\code\php_demo\webman\vendor\workerman\webman-framework\src\support\App.php(131): Workerman\Worker::runAll()
#4 D:\users\xiasha\Desktop\code\php_demo\webman\start.php(4): support\App::run()
#5 {main}
  thrown in D:\users\xiasha\Desktop\code\php_demo\webman\vendor\workerman\workerman\Worker.php on line 2365

截图报错信息里报错文件相关代码

操作系统及workerman/webman等框架组件具体版本

windows服务器
php 7.4.32

646 1 0
1个回答

nitron

看是不是其他程序占用了这个端口,换个端口试试

  • xiashadeqiu 2024-03-25

    不行,换了好多端口了,防火墙也关闭了

  • nitron 2024-03-25

    我才看清那个截图,你把这些方法都禁用了..

×
🔝