美文网首页
Mac 下无法访问localhost

Mac 下无法访问localhost

作者: UnitedStates | 来源:发表于2018-01-11 10:34 被阅读0次

系统为 macOS High Sierra Version 10.13.2 

检查文件配置是否正确,若是则删除 /private/var/log/下的apache2文件夹 

然后在终端输入 sudo mkdir /private/var/log/apache2 

重启apache

Apache服务相关命令:

停止服务:sudo /usr/sbin/apachectl stop

开启服务:sudo /usr/sbin/apachectl start

重启服务:sudo /usr/sbin/apachectl restart

相关文章

网友评论

      本文标题:Mac 下无法访问localhost

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