美文网首页
Mac原生开启本地服务器

Mac原生开启本地服务器

作者: 123_4567_8910 | 来源:发表于2019-02-20 17:06 被阅读0次
//开启apache:  

sudo apachectl start

//重启apache:  

sudo apachectl restart

//关闭apache:  

sudo apachectl stop
  • 资源文件是放在“/资源库/WebServer/Documents/文件夹下


    image.png

然后访问172.0.0.1,没有问题,说明服务已经生效,这个页面时默认页面,可以自行修改。

相关文章

网友评论

      本文标题:Mac原生开启本地服务器

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