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/

猜你喜欢

转载自blog.csdn.net/kongxx/article/details/79646006
今日推荐