美文网首页
Mac下快速搭建PHP开发环境

Mac下快速搭建PHP开发环境

作者: 关保民 | 来源:发表于2019-04-02 14:50 被阅读0次

1.运行Apache

Mac OS 10.12.1 自带Apache,Nginx和PHP
查看Apache版本,在终端根目录输入如下命令:

sudo apachectl -v

终端会输出Apache的版本及built时间

Server version: Apache/2.4.34 (Unix) Server built: Aug 17 2018 16:29:43

开启Apache

sudo apachectl start
开启后,可以通过浏览器访问:http://localhost,页面显示“It works” 表示已经成功。

关闭Apache

sudo apachectl stop

重启Apache

sudo apachectl restart

相关文章

网友评论

      本文标题:Mac下快速搭建PHP开发环境

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