Laravel 更换内置服务器监听端口
正常情况下,使用 php artisan serve
启动 Laravel 内置服务器,将会监听在 localhost 的 8000 端口上
$ php artisan serve Laravel development server started on http://localhost:8000
假如我们希望更换监听的接口地址或端口号,可以使用 --host
参数与 --port
参数
$ php artisan serve --host=0.0.0.0 --port=8080 Laravel development server started on http://0.0.0.0:8080
相关推荐
SoarFly00 2020-06-08
thundor 2020-05-05
sunln00 2019-12-20
luckymaoyy 2019-12-09
haojing 2018-01-07
超哥Blog 2014-12-16
xasdfg 2014-12-15
sufwei 2014-02-21
shipinsky 2012-02-20
Aveiox 2013-12-26
TimelessFaith 2009-12-11
xbworkspace 2019-06-10
dguthai 2016-11-01
Codeer 2018-08-06
幻象天空 2017-10-09
XMM00 2017-01-10
taikewu 2017-03-15