PHP的工匠服务失败

问题描述

每当我尝试运行命令时,都会得到此信息。 我正在尝试将Laravel混合项目打开到开发服务器中

C:\laragon\www\feudal>php artisan serve
Starting Laravel development server: http://127.0.0.1:8000
[Wed Oct 14 11:11:11 2020] Failed to listen on 127.0.0.1:8000 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8001
[Wed Oct 14 11:11:11 2020] Failed to listen on 127.0.0.1:8001 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8002
[Wed Oct 14 11:11:12 2020] Failed to listen on 127.0.0.1:8002 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8003
[Wed Oct 14 11:11:12 2020] Failed to listen on 127.0.0.1:8003 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8004
[Wed Oct 14 11:11:13 2020] Failed to listen on 127.0.0.1:8004 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8005
[Wed Oct 14 11:11:13 2020] Failed to listen on 127.0.0.1:8005 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8006
[Wed Oct 14 11:11:14 2020] Failed to listen on 127.0.0.1:8006 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8007
[Wed Oct 14 11:11:14 2020] Failed to listen on 127.0.0.1:8007 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8008
[Wed Oct 14 11:11:15 2020] Failed to listen on 127.0.0.1:8008 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8009
[Wed Oct 14 11:11:15 2020] Failed to listen on 127.0.0.1:8009 (reason: ?)
Starting Laravel development server: http://127.0.0.1:8010
[Wed Oct 14 11:11:16 2020] Failed to listen on 127.0.0.1:8010 (reason: ?)

解决方法

我的 refreshSlide() 设置为

php.ini

我删除了“E”并将设置恢复为默认值:

variables_order = "EGPCS"

上面 Patrick Daze 建议的更改修复了错误: 这是错误:

“[2021 年 2 月 10 日星期三 13:07:11] 未能在 127.0.0.1:8010 收听(原因:?)”

进行更改后:

“[2021 年 2 月 10 日星期三 13:10:22] PHP 7.4.14 开发服务器 (http://127.0.0.1:8000) 已启动”

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...