mac OS 配置Apache服务器

版权声明:本文为博主原创文章 转载请附上博文链接 https://blog.csdn.net/weixin_41791279/article/details/88374174

Mac自带了Apache环境

查看Apache版本 sudo apachectl -v 

在终端输入:sudo apachectl start

在浏览器输入“http://localhost”,会显示“It works!”,说明服务器已经启动成功了。

Apache默认的根目录在“/Library/WebServer/Documents/”下。

sudo apachectl restart   #重启

sudo apachectl stop   #停止

猜你喜欢

转载自blog.csdn.net/weixin_41791279/article/details/88374174