Redirecting to /bin/systemctl restart iptables.service

linux下执行防火墙相关指令报错:

Redirecting to /bin/systemctl restart iptables.service
1,安装systemctl:

yum install iptables-services
2,设置开机启动:

systemctl enable iptables.service
然后就可以执行以下指令了:

systemctl stop iptables
systemctl start iptables
systemctl restart iptables
systemctl reload iptables
 
————————————————
版权声明:本文为CSDN博主「Chameleon_W」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_23521659/article/details/94732786

发布了41 篇原创文章 · 获赞 4 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/sun_hm/article/details/105227459
今日推荐