醉丶春风的Blog

千里之行, 始于足下



php 使用内置web服务器


命令行执行:

cd project_dir
php -S localhost:8234 -t ./

访问localhost:8234即可打开

端口可以自己指定
-t 后面指定目录, 不加-t 参数则为当前目录, 访问时优先打开 index.php index.html
参考 http://php.net/manual/zh/features.commandline.webserver.php


php
作者: 徐善通
地址: https://www.xstnet.com/article-85.html
声明: 除非本文有注明出处,否则转载请注明本文地址


我有话说



最新回复


正在加载中....

Copyrights © 2016-2019 醉丶春风 , All rights reserved. 皖ICP备15015582号-1