Mac Apache配置

tool  
发布于 Jun 5, 2019
  • 10 推荐
  • 520 浏览

mac自带有apache服务器。

Apache路径

配置路径

cd /etc/apache2
ls
extra                   httpd.conf.bak          httpd.conf~previous     mime.types              other
httpd.conf              httpd.conf.pre-update   magic                   original                users

工作路径

/Library/WebServer/

启动服务

sudo apachectl start/restart   #启动apache
sudo apachectl stop            #停止apache
本文由 China祥 创作,采用 知识共享署名 3.0 中国大陆许可协议 进行许可。
可自由转载、引用,但需署名作者且注明文章出处。