mac自带有apache服务器,启动便可以使用了。

1.启动/关闭

启动:sudo apachectl start
关闭:sudo apachectl stop
重启:sudo apachectl restart

2.默认根目录

/Library/WebServer/Documents

3.配置文件目录

/etc/apache2/httpd.conf