运行easyswoole报错大屏查看

发布于:2020年06月04日 已被阅读

运行easyswoole报错

  1. cd easyswoole //转到easyswoole文件夹下

  2. php easyswoole start //启动
    若启动报错,运行netstat -anp | grep port 查看该端口是否被占用(port为端口号)


[root@localhost easyswoole]# netstat -anp  | grep 9501

tcp   0    0 192.168.0.65:9501       0.0.0.0:*      LISTEN      2730/EasySwoole

1

2

若被占用运行 kill -9 2730杀死进程

————————————————

版权声明:本文为CSDN博主「weixin_42782926」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/weixin_42782926/java/article/details/88723016



WARNINGswSocket_bind(:483): bind(0.0.0.0:9501) failed, Error: Address already in use[98]

PHP Fatal error:  Uncaught Swoole\Exception: failed to listen server port[0.0.0.0:9501], Error: Address already in use[98] in /dyree/vendor/easyswoole/easyswoole/src/ServerManager.php:59

Stack trace:

#0 /dyree/vendor/easyswoole/easyswoole/src/ServerManager.php(59): Swoole\Server->__construct('0.0.0.0', 9501, 2, 1)

#1 /dyree/vendor/easyswoole/easyswoole/src/Core.php(127): EasySwoole\EasySwoole\ServerManager->createSwooleServer(9501, 2, '0.0.0.0', Array, 2, 1)

#2 /dyree/vendor/easyswoole/easyswoole/src/Command/DefaultCommand/Start.php(42): EasySwoole\EasySwoole\Core->createServer()

#3 /dyree/vendor/easyswoole/easyswoole/src/Command/CommandContainer.php(46): EasySwoole\EasySwoole\Command\DefaultCommand\Start->exec(Array)

#4 /dyree/vendor/easyswoole/easyswoole/src/Command/CommandRunner.php(62): EasySwoole\EasySwoole\Command\CommandContainer->hook('start', Array)

#5 /dyree/easyswoole(25): EasySwoole\EasySwoole\Command\CommandRunner->run(Array)

#6 {main}

  thrown in /dyree/vendor/easyswoole/easyswoole/src/ServerManager.php on line 59


Fatal error: Uncaught Swoole\Exception: failed to listen server port[0.0.0.0:9501], Error: Address already in use[98] in /dyree/vendor/easyswoole/easyswoole/src/ServerManager.php:59

Stack trace:

#0 /dyree/vendor/easyswoole/easyswoole/src/ServerManager.php(59): Swoole\Server->__construct('0.0.0.0', 9501, 2, 1)

#1 /dyree/vendor/easyswoole/easyswoole/src/Core.php(127): EasySwoole\EasySwoole\ServerManager->createSwooleServer(9501, 2, '0.0.0.0', Array, 2, 1)

#2 /dyree/vendor/easyswoole/easyswoole/src/Command/DefaultCommand/Start.php(42): EasySwoole\EasySwoole\Core->createServer()

#3 /dyree/vendor/easyswoole/easyswoole/src/Command/CommandContainer.php(46): EasySwoole\EasySwoole\Command\DefaultCommand\Start->exec(Array)

#4 /dyree/vendor/easyswoole/easyswoole/src/Command/CommandRunner.php(62): EasySwoole\EasySwoole\Command\CommandContainer->hook('start', Array)

#5 /dyree/easyswoole(25): EasySwoole\EasySwoole\Command\CommandRunner->run(Array)

#6 {main}

  thrown in /dyree/vendor/easyswoole/easyswoole/src/ServerManager.php on line 59

[2020-06-04 12:40:35][debug][error]:[Uncaught Swoole\Exception: failed to listen server port[0.0.0.0:9501], Error: Address already in use[98] in /dyree/vendor/easyswoole/easyswoole/src/ServerManager.php:59

Stack trace:

#0 /dyree/vendor/easyswoole/easyswoole/src/ServerManager.php(59): Swoole\Server->__construct('0.0.0.0', 9501, 2, 1)

#1 /dyree/vendor/easyswoole/easyswoole/src/Core.php(127): EasySwoole\EasySwoole\ServerManager->createSwooleServer(9501, 2, '0.0.0.0', Array, 2, 1)

#2 /dyree/vendor/easyswoole/easyswoole/src/Command/DefaultCommand/Start.php(42): EasySwoole\EasySwoole\Core->createServer()

#3 /dyree/vendor/easyswoole/easyswoole/src/Command/CommandContainer.php(46): EasySwoole\EasySwoole\Command\DefaultCommand\Start->exec(Array)

#4 /dyree/vendor/easyswoole/easyswoole/src/Command/CommandRunner.php(62): EasySwoole\EasySwoole\Command\CommandContainer->hook('start', Array)

#5 /dyree/easyswoole(25): EasySwoole\EasySwoole\Command\CommandRunner->run(Array)

#6 {main}

  thrown at file:/dyree/vendor/easyswoole/easyswoole/src/ServerManager.php line:59]

[2020-06-04 12:40:35][debug][warning]:[file_put_contents(/log/log_202006.log): failed to open stream: Permission denied at file:/dyree/vendor/easyswoole/log/src/Logger.php line:26]

PHP Warning:  file_put_contents(/log/log_202006.log): failed to open stream: Permission denied in /dyree/vendor/easyswoole/log/src/Logger.php on line 26


Warning: file_put_contents(/log/log_202006.log): failed to open stream: Permission denied in /dyree/vendor/easyswoole/log/src/Logger.php on line 26

image.png

最新发布
linux下svn提交忽略某些文件... (173)
使用批处理来批量更新、提交SVN... (135)
linux查看目录文件大小命令 (145)
linux tar打包压缩排除某个... (134)
Linux tar压缩和解压 (192)
SVN子命令add用法浅析 (130)
热门博文
网友FBI探案:马蓉iPad惊人发现... (43343)
霍金携手俄罗斯富豪耗资1亿美元寻找外... (4746)
如何才能查看PHP内置函数源代码... (1209)
微信支付开发当前URL未注册的解决方... (573)
《谁为爱情买单》中的经典面试 ... (441)
让虚拟主机也用上SVN:适用于个人的... (394)
精华博文
[推荐]Centos7 安装配置 SVN (157)
easyswoole框架安装 (173)
php开启pecl的支持(推荐) (157)
1-10个恋爱表现:男朋友爱你程度到... (164)
女生喜欢你的10个程度,到第六个就可... (141)
Eclipse 没有Server选项... (211)
友情链接
我来忙 (110)