iptables是linux下的防火墙,同时也是服务名称. service iptables status 查看防火墙状态 service iptables start 开启防火墙 service iptables stop 关闭防火墙 service iptables restart 重启防火墙 防火墙开放特定端口: ①文件/etc/sysconfig/iptables ②添加: -
1.修改文件/etc/sysconfig/iptables [root@zsq ~]# cd /etc/sysconfig/[root@zsq sysconfig]# vi iptables 文件内容如下,注意红色一行是新加的,目的是对外界开放8080端口 # Firewall configuration written by system-config-firewall# Manual customization of this file is not recommended.*filter: