mac开发php,使用系统apache

开启、关闭、重启Apache server:

开启:sudo apachectl start

关闭:sudo apachectl stop

重启:sudo apachectl restart

查看apache2文件夹:

/private/etc/apache2

查看hosts文件:

/private/etc/hosts

apache根目录:(工程项目一般放在这个根目录,自己也可以另外创建虚拟目录)

/Library/WebServer/Documents

查看httpd-vhosts.conf文件:(配置信息)

/private/etc/apache2/extra/httpd-vhosts.conf

查看httpd.conf文件:(配置信息)

/private/etc/apache2/httpd.conf

原文地址:https://www.cnblogs.com/ljj-Andrew-519/p/9638855.html