[root@test ~]# service iptables save
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
[root@test ~]# service iptables restart
Redirecting to /bin/systemctl restart iptables.service
Failed to restart iptables.service: Unit not found.
[root@test ~]# sudo ufw status
sudo: ufw:找不到命令
[root@test ~]# systemctl stop firewalld
[root@test ~]# systemctl mask firewalld
Created symlink from /etc/systemd/system/firewalld.service to /dev/null.
[root@test ~]# yum install iptables-services
已加载插件:fastestmirror, langpacks
Determining fastest mirrors
* base: mirror.bit.edu.cn
* extras: mirror.bit.edu.cn
* updates: mirrors.bfsu.edu.cn
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/3): extras/7/x86_64/primary_db | 222 kB 00:00:00
(2/3): base/7/x86_64/primary
Linux_异常_netfilter防火墙_Failed to restart iptables.service: Unit not found.
最新推荐文章于 2021-10-01 23:51:09 发布