Mac上的localhost拒绝连接

时间:2019-02-11 01:04:21

标签: apache localhost

我读了很多书来解决本地主机拒绝连接但仍然无法正常工作的问题 我检查了位于
hotst /private/etc/hosts 似乎还可以(我认为)

#
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost

我尝试过:

sudo apachectl configtest' //return Syntax OK
sudo apachectl restart'


不起作用,那么我尝试了这个:

which apachectl
sudo /usr/local/bin/apachectl configtest //return Syntax OK
sudo /usr/local/bin/apachectl restart


也不行!

0 个答案:

没有答案