Mac上启动Apache服务,Mac启动Apache服务


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/

相关内容

    暂无相关文章