美文网首页
Mac启动本地Apache服务器

Mac启动本地Apache服务器

作者: ziyouzhe4 | 来源:发表于2017-09-16 12:35 被阅读122次

默认Mac系统自带了 Apache 服务器,只需简单几步就可以启动

  1. 打开终端
开启apache:  sudo apachectl start
重启apache:  sudo apachectl restart
关闭apache:  sudo apachectl stop

打开后出现下面界面:

image.png

如果想要进入服务器的文件路径 . 点击Finder,然后Command+Shift+G,前往 /资源库/WebServer/Documents/ 路径就可以了.可以将自己的HTML文件放在下面访问了

image.png

相关文章

网友评论

      本文标题:Mac启动本地Apache服务器

      本文链接:https://www.haomeiwen.com/subject/pfnssxtx.html