首页 > 系统服务 > 详细

Linux防火墙

时间:2019-04-02 16:23:45      阅读:133      评论:0      收藏:0      [点我收藏+]

在尝试打开防火墙时出现以下错误提示:

[root@wuyike ~]# service iptables status
Redirecting to /bin/systemctl status iptables.service
Unit iptables.service could not be found.

这是由于没有安装防火墙服务。安装命令如下:

yum install iptables-services -y

技术分享图片

service iptables start    #启动防火墙
service iptables status   #查看防火墙状态
service iptables stop     #关闭防火墙
service iptables restart #重启防火墙
chkconfig iptables off  #
永久关闭防火墙
chkconfig iptables on #永久关闭后启用
 

 

Linux防火墙

原文:https://www.cnblogs.com/wuyikenote/p/10643239.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!