Mac OS X 10.12.6 默认是安装了 Apache 的,要启动 Apache 服务需要手动通过命令行开启。
启动Apache
sudo apachectl start
停止Apache
sudo apachectl stop
启动后可以通过 http://127.0.0.1 访问了。
另外,配置文件路径为
/etc/apache2/httpd.conf
站点的根目录为
/Library/WebServer/Documents/
本文分享自 作者个人站点/博客 前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体分享计划 ,欢迎热爱写作的你一起参与!