美文网首页我爱编程
Mac上启动Apache服务

Mac上启动Apache服务

作者: kongxx | 来源:发表于2018-03-21 21:05 被阅读11次

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/

相关文章

网友评论

    本文标题:Mac上启动Apache服务

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