【发布时间】:2020-03-07 20:23:51
【问题描述】:
当我运行这个命令时:php -S 127.0.0.1:8000 -t public 错误是:
Could not open input file: 127.0.0.1:8000
我正在使用symfony 4,当我使用命令php bin/console server:run 为服务器提供午餐时它可以工作,但使用命令php -S 127.0.0.1:8000 -t public 它不起作用。
【问题讨论】:
-
你能给出确切的错误吗?另外,您使用什么操作系统?你用的是什么版本的
PHP? -
这是错误无法打开输入文件:127.0.0.1:8000,我使用窗口,php 7.2
-
看看这里:stackoverflow.com/questions/29110674/… 他有同样的错误,因为命令中的选项无效。你确定你在
-S中使用英文字母吗? :trollface: -
另外,您是否尝试将您的
php v7.2更新到最新版本的 7.2(即 7.2.24)? -
还有一个问题。您的 PC 上是否有任何网络接口(即 LAN、WIFI)?
标签: symfony4