httpd服务器正常,index.html访问不了

在Linux下面如果相连接nfs搭建的服务器,访问这台服务器上面的index的话。

强制关闭防火墙是:

iptables -F

还有一种方法是

systemctl stop firewalld

systemctl disable firewalld

在本地主机需要关闭防火墙

打开apache服务器

systemctl start httpd

systemctl enable httpd

同时还需要关闭selinux  https://blog.csdn.net/mirage1993/article/details/43447833  这个是提供的一个网址

这些都设置成功之后,如果还是不行的话,就需要进行重新启动自己的机器。

然后重新再链接就好了。