别做这个操作。。yum remove iptables

当时只是想把防火墙都关掉,关不掉的卸载掉。
结果我没有选择iptables -F,选择了yum remove iptables!!
之后service命令没有了。。。。
还有很多东西都消失了,所以重装吧。。

删除iptables的时候:

删除:
  iptables.x86_64 0:1.4.21-16.el7                                                                                                                                                         

作为依赖被删除:
  NetworkManager.x86_64 1:1.0.6-27.el7                                                            NetworkManager-adsl.x86_64 1:1.0.6-27.el7                                               
  NetworkManager-libreswan.x86_64 0:1.0.6-3.el7                                                   NetworkManager-libreswan-gnome.x86_64 0:1.0.6-3.el7                                     
  NetworkManager-team.x86_64 1:1.0.6-27.el7                                                       NetworkManager-tui.x86_64 1:1.0.6-27.el7                                                
  abrt-addon-vmcore.x86_64 0:2.1.11-36.el7.centos                                             abrt-cli.x86_64 0:2.1.11-36.el7.centos                                                  
  abrt-console-notification.x86_64 0:2.1.11-36.el7.centos                                     abrt-desktop.x86_64 0:2.1.11-36.el7.centos                                              
  anaconda-core.x86_64 0:21.48.22.56-5.el7.centos                                                 anaconda-tui.x86_64 0:21.48.22.56-5.el7.centos                                          
  apr-util-devel.x86_64 0:1.5.2-6.el7                                                         cyrus-sasl.x86_64 0:2.1.26-19.2.el7                                                     
  cyrus-sasl-devel.x86_64 0:2.1.26-19.2.el7                                                   device-mapper-multipath.x86_64 0:0.4.9-85.el7                                           
  dhclient.x86_64 12:4.2.5-42.el7.centos                                                      dracut-network.x86_64 0:033-359.el7                                                     
  fcoe-utils.x86_64 0:1.0.30-3.git91c0c8c.el7                                                     firewall-config.noarch 0:0.3.9-14.el7                                                   
  firewalld.noarch 0:0.3.9-14.el7                                                             gnome-boxes.x86_64 0:3.14.3.1-7.el7                                                     
  gnome-color-manager.x86_64 0:3.14.2-1.el7                                                   gnome-terminal.x86_64 0:3.14.3-3.el7                                                    
  httpd-devel.x86_64 0:2.4.6-40.el7.centos                                                    initial-setup.x86_64 0:0.3.9.30-1.el7.centos                                            
  initscripts.x86_64 0:9.49.30-1.el7                                                          ipa-client.x86_64 0:4.2.0-15.el7.centos                                                 
  ipa-python.x86_64 0:4.2.0-15.el7.centos                                                     iproute.x86_64 0:3.10.0-54.el7                                                          
  iptables-devel.x86_64 0:1.4.21-16.el7                                                       kbd.x86_64 0:1.15.5-11.el7                                                              
  kexec-tools.x86_64 0:2.0.7-38.el7                                                               libguestfs.x86_64 1:1.28.1-1.55.el7.centos                                              
  libreswan.x86_64 0:3.12-10.1.el7_1                                                              libstoragemgmt.x86_64 0:1.2.3-4.el7                                                     
  libstoragemgmt-python.noarch 0:1.2.3-4.el7                                                  libvirt.x86_64 0:1.2.17-13.el7                                                          
  libvirt-client.x86_64 0:1.2.17-13.el7                                                       libvirt-daemon.x86_64 0:1.2.17-13.el7                                                   
  libvirt-daemon-config-network.x86_64 0:1.2.17-13.el7                                        libvirt-daemon-config-nwfilter.x86_64 0:1.2.17-13.el7                                   
  libvirt-daemon-driver-interface.x86_64 0:1.2.17-13.el7                                      libvirt-daemon-driver-lxc.x86_64 0:1.2.17-13.el7                                        
  libvirt-daemon-driver-network.x86_64 0:1.2.17-13.el7                                        libvirt-daemon-driver-nodedev.x86_64 0:1.2.17-13.el7                                    
  libvirt-daemon-driver-nwfilter.x86_64 0:1.2.17-13.el7                                       libvirt-daemon-driver-qemu.x86_64 0:1.2.17-13.el7                                       
  libvirt-daemon-driver-secret.x86_64 0:1.2.17-13.el7                                         libvirt-daemon-driver-storage.x86_64 0:1.2.17-13.el7                                    
  libvirt-daemon-kvm.x86_64 0:1.2.17-13.el7                                                   libvirt-glib.x86_64 0:0.1.9-1.el7                                                       
  libvirt-gobject.x86_64 0:0.1.9-1.el7                                                        libvirt-python.x86_64 0:1.2.17-2.el7                                                    
  lvm2-sysvinit.x86_64 7:2.02.130-5.el7_2.1                                                   nfs-utils.x86_64 1:1.3.0-0.21.el7                                                       
  numad.x86_64 0:0.5-14.20140620git.el7                                                       open-vm-tools.x86_64 0:9.10.2-4.el7                                                     
  open-vm-tools-desktop.x86_64 0:9.10.2-4.el7                                                     openldap-devel.x86_64 0:2.4.40-8.el7                                                    
  pcp.x86_64 0:3.10.6-2.el7                                                                   pcp-compat.x86_64 0:3.10.6-2.el7                                                        
  pcp-export-pcp2graphite.x86_64 0:3.10.6-2.el7                                               pcp-pmda-gluster.x86_64 0:3.10.6-2.el7                                                  
  pcp-pmda-json.x86_64 0:3.10.6-2.el7                                                         pcp-pmda-lustrecomm.x86_64 0:3.10.6-2.el7                                               
  pcp-pmda-roomtemp.x86_64 0:3.10.6-2.el7                                                     pcp-pmda-rpm.x86_64 0:3.10.6-2.el7                                                      
  pcp-pmda-sendmail.x86_64 0:3.10.6-2.el7                                                     pcp-pmda-summary.x86_64 0:3.10.6-2.el7                                                  
  pcp-pmda-unbound.x86_64 0:3.10.6-2.el7                                                      pcp-pmda-weblog.x86_64 0:3.10.6-2.el7                                                   
  pcp-pmda-zswap.x86_64 0:3.10.6-2.el7                                                        pcp-system-tools.x86_64 0:3.10.6-2.el7                                                  
  plymouth.x86_64 0:0.8.9-0.24.20140113.el7.centos                                                plymouth-plugin-label.x86_64 0:0.8.9-0.24.20140113.el7.centos                           
  plymouth-plugin-two-step.x86_64 0:0.8.9-0.24.20140113.el7.centos                                plymouth-scripts.x86_64 0:0.8.9-0.24.20140113.el7.centos                                
  plymouth-system-theme.x86_64 0:0.8.9-0.24.20140113.el7.centos                                   plymouth-theme-charge.x86_64 0:0.8.9-0.24.20140113.el7.centos                           
  pm-utils.x86_64 0:1.4.1-27.el7                                                              python-blivet.noarch 1:0.61.15.37-1.el7                                                 
  python-pcp.x86_64 0:3.10.6-2.el7                                                            quota.x86_64 1:4.01-11.el7                                                              
  vinagre.x86_64 0:3.14.3-1.el7                                                               virt-install.noarch 0:1.2.1-8.el7                                                       
  virt-manager.noarch 0:1.2.1-8.el7                                                           virt-manager-common.noarch 0:1.2.1-8.el7                                                
  virt-top.x86_64 0:1.0.8-8.el7                                                               virt-viewer.x86_64 0:2.0-6.el7                                                          
  vte291.x86_64 0:0.38.3-2.el7                                                                vte3.x86_64 0:0.36.4-1.el7              

你可能感兴趣的:(别做这个操作。。yum remove iptables)