1、进入特权模式
SianMac:~ Sian$ sudo -s Password: bash-3.2#
2、开启Apache服务 bash-3.2# apachectl -k start httpd (pid 3965) already running
3、在浏览器中输入 http://127.0.0.1 即可访问
4、Apache文件目录为 /Library/WebServer/Documents bash-3.2# cd /Library/WebServer/Documents/ bash-3.2# pwd /Library/WebServer/Documents bash-3.2#
|