有时候一些临时项目,不想配置nginx,直接以php内部服务器请求即可,更方便,如
php -S localhost:8006 -t . .\public\index.php
php -s 解析
第一个参数要启动的网络和端口,
-t 两个参数
- 项目根目录,一般直接运行输入.即可
- 要运行的入口文件
有时候一些临时项目,不想配置nginx,直接以php内部服务器请求即可,更方便,如
php -S localhost:8006 -t . .\public\index.php
第一个参数要启动的网络和端口,
本文标题:php 简单web服务器请求
本文链接:https://www.haomeiwen.com/subject/liuhedtx.html
网友评论