OS X 版本:10.9.2。
Apache的安装目录位于/etc/apache2/,httpd.conf文件就在这个目录下。
Apache的module库位于/usr/libexec/apache2/目录下。
1. 查看版本:sudo apachectl -v
2. 启动:sudo apachectl start
3. 重启:sudo apachectl restart
4. 停止:sudo apachectl stop
5. 查看状态:sudo apachectl status
启动后,打开浏览器,访问:http://localhost,显示"It Works!",即说明启动成功!
参考文献:
1. http://www.cnblogs.com/snandy/archive/2012/11/13/2765381.html
2. http://smartwebdeveloper.com/mac/httpd-conf-location-mac
3. http://stackoverflow.com/questions/2306337/wheres-the-module-files-for-the-build-in-apache-in-snow-leopard
4. http://stackoverflow.com/questions/12395639/mac-os-mountain-lion-apache-running-but-localhost-not-working
5. http://down.chinaz.com/server/201108/942_1.htm
6. http://blog.csdn.net/u012945598/article/details/17162039
没有评论:
发表评论