- 关闭 NetworkManger 服务
systemctl stop NetworkManager
- 禁止开机启动
systemctl disable NetworkManager
- 重启网络服务
systemctl start network.service
关闭防火墙
解决CentOS7关闭/开启防火墙出现Unit iptables.service failed to load: No such file or directory.
systemctl stop firewalld
systemctl mask firewalld
- yum install iptables-services
- systemctl enable iptables
- systemctl stop iptables
- service iptables save