Mac 启动PHP文件
sudo apachectl start

Apache服务是否启动成功,输入以下地址http://localhost 或者 http://127.0.0.1
将需要运行的php文件放在/Library/WebServer/Documents/ 目录下
启动成功

浏览器输入http://localhost/index.php即可成功运行php文件了
sudo apachectl restart
posted on 2022-08-11 12:58 Ra7ing安全实验室 阅读(354) 评论(0) 编辑 收藏 举报