symfony本地web启动报:The local web server is already running
报错信息:
[WARNING] The local web server is already running
Local Web Server
Listening on http://127.0.0.1:8000
The Web server is using PHP CGI 8.0.2
Local Domains
Workers
PID 20588: E:\phpstudy\phpstudy_pro\Extensions\php\php8.0.2nts\php-cgi.exe -b 59738 -d error_log=C:\Users\20611\.symfony\log\1b
2ca2f9d692fdace10b0a2984b473f434b64f3d.log
Environment Variables
None
原因分析:
有可能上次使用 symfony server:start 命令启动后没有停止导致,再次开机无法使用此命令,导致以上报错的话,先使用
symfony server:stop 命令进行内置服务停止,然后重新启动即可。