mac搭建本地服务器
mac自带apache服务,所以不需要安装
1.开始服务
sudo apachectl start
启动后,我们在浏览器输入 http://localhost ,界面展示 “It works!”
2.关闭服务器
sudo apachectl stop
3.重启服务器
sudo apachectl restart
注意
Apache服务器默认的web根目录在:/Library/WebServer/Documents
Apache的配置文件在:/etc/apache2
页:
[1]