PHP-如何在Macbook Pro搭建开发环境:
http://jingyan.baidu.com/article/67508eb434539f9cca1ce4da.html
1.先介绍几个命令
// 启动Apache服务 sudo apachectl start
// 重启Apache服务 sudo apachectl restart
// 停止Apache服务 sudo apachectl stop
// 查看Apache版本 httpd -v
Mac OS自带Apache,只需要启动Apache就行。
打开终端,输入命令:sudo apachectl start
2.打开浏览器,在地址栏中输入localhost,出现It Works字符串,就说明Apache已经成功启动
3.在Macbook pro下,Apache的网站服务器根目录在/Library/WebServer/Documents路径下