[root@oledb ~]# yum install iptables-services
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
–> Running transaction check
…
[root@oledb ~]# iptables -F
[root@oledb ~]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
[root@oledb ~]# systemctl disable iptables
[root@oledb ~]# systemctl disable libvirtd.service ##取消关联服务开机启动
Removed symlink /etc/systemd/system/multi-user.target.wants/libvirtd.service.
Removed symlink /etc/systemd/system/sockets.target.wants/virtlogd.socket.
Removed symlink /etc/systemd/system/sockets.target.wants/virtlockd.socket.
systemctl disable firewalld
从新启动后,iptables清除。