美文网首页
PHP:内置Web Server

PHP:内置Web Server

作者: zlchen | 来源:发表于2020-05-30 12:32 被阅读0次

    php -S localhost:8080 -t public

    命令参数解释:

    -S: 启动开发服务器(php5.4+自带)并设置监听地址

    -t: 设置Web根目录,将public目录作为web目录

    通过http:localhost:8080 访问

    相关文章

      网友评论

          本文标题:PHP:内置Web Server

          本文链接:https://www.haomeiwen.com/subject/snpzdttx.html