问题描述
我有虚拟envirment的下安装CentOS的7。
它有适当的主机名,所以我可以ping到它,它有acccess互联网它里面,我可以通过IP ping通和它的外部主机名。同时它具有工作Apache和它的测试页面是罚款已被当地检验。
I have got installed CentOS 7 under virtual envirment.It has proper hostname so I can ping it and it has acccess to internet inside of it and I can ping by IP and host name outside of it. Also It has working Apache and its test page is fine that has been checked locally.
现在我想获得访问来自微软Windows这个测试页面,但我不能。 (我可以通过IP和主机名ping通CentOS的。)
Now I would like to get access to this test page from the MS Windows but I cannot. (I can ping CentOS by IP and hostname.)
有它是与的iptables
或防火墙
?
和这个链接犯规帮助,以及http://serverfault.com/questions/459267/enabling-http-access-on-port-80-for-centos-6-3-from-console
And this link doesnt help as well http://serverfault.com/questions/459267/enabling-http-access-on-port-80-for-centos-6-3-from-console
我承担了部分的设置应该根据CentOS的改变,但我不知道其中哪些。
I assume some settings should be changed under CentOS but I am not sure which of them.
我的问题是哪些步骤我必须执行,让所有这些事情?
My question is which steps I have to execute to allow all those things?
推荐答案
或者禁用firewalld.service
Either disable firewalld.service
systemctl disable firewalld.service
systemctl stop firewalld.service
或允许访问端口80
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
另外,请禁用SELINUX:
Also disable SELINUX:
setenforce 0
sed -i 's/^SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
这篇关于无法从微软Windows通过HTTP访问的CentOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!