美文网首页
Mac开启本机apache服务器

Mac开启本机apache服务器

作者: GexYY | 来源:发表于2020-05-12 16:31 被阅读0次

常用三个终端命令

//开启apache:  sudo apachectl start

//重启apache:  sudo apachectl restart

//关闭apache:  sudo apachectl stop

//打开服务根目录:open /Library/WebServer/Documents,

打开终端输入sudo apachectl start回车会提示输入密码,就是电脑密码,然后打开浏览器http://127.0.0.1/或者http://localhost测试一下;

相关文章

网友评论

      本文标题:Mac开启本机apache服务器

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