centos7关闭防火墙
安装的是centOS7 mini,apache httpd的80端口始终访问不了,发现是防火墙问题,网上查了很多方法,好像都没成功。
直接命令:service firewalld stop
1. Disable Firewalld Service.
systemctl mask firewalld
2. Stop Firewalld Service.
systemctl stop firewalld
3. Install iptables service related packages.
yum -y install iptables-services
4. Make sure service starts at boot:
systemctl enable iptables
# If you do not want ip6tables, You can skip following command.
systemctl enable ip6tables
5. Now, Finally Let’s start the iptables services.
systemctl start iptables
# If you do not want ip6tables, You can skip following command.
systemctl start ip6tables
Firewalld Service is now disabled and stop, You can use iptables.
本站文章除注明转载外,均为本站原创或编译
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创优秀实例教程
转载请注明:文章转载自:代码驿站 [http:/www.codeinn.net]
本文标题:centos7关闭防火墙
本文地址:http://www.codeinn.net/misc/180.html
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创优秀实例教程
转载请注明:文章转载自:代码驿站 [http:/www.codeinn.net]
本文标题:centos7关闭防火墙
本文地址:http://www.codeinn.net/misc/180.html