RedHat Enterprise Linux 7关闭防火墙方法
来源:互联网 发布:魔兽争霸战三国数据 编辑:程序博客网 时间:2024/06/12 01:20
RedHat Enterprise Linux 7关闭防火墙方法
在之前的版本中关闭防火墙等服务的命令是
service iptables stop
/etc/init.d/iptables stop
在RHEL7中,其实没有这个服务
[root@rhel7 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)
[root@rhel7 ~]# service iptables stop
Redirecting to /bin/systemctl stop iptables.service
[root@rhel7 ~]# /etc/init.d/iptables stop
-bash: /etc/init.d/iptables: No such file or directory
原来在RHEL7开始,使用systemctl工具来管理服务程序,包括了service和chkconfig
[root@rhel7 ~]# systemctl list-unit-files|grep enabled | grep firewalld
firewalld.service enabled
禁用防火墙
[root@rhel7 ~]# systemctl stop firewalld.service (重启恢复)
[root@rhel7 ~]# systemctl disable firewalld.service (永久关闭)
[root@rhel7 ~]# systemctl status firewalld.service
firewalld.service – firewalld – dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled)
Active: inactive (dead)
启动一个服务:systemctl start firewalld.service
关闭一个服务:systemctl stop firewalld.service
重启一个服务:systemctl restart firewalld.service
显示一个服务的状态:systemctl status firewalld.service
在开机时启用一个服务:systemctl enable firewalld.service
在开机时禁用一个服务:systemctl disable firewalld.service
查看服务是否开机启动:systemctl is-enabled firewalld.service;echo $?
查看已启动的服务列表:systemctl list-unit-files|grep enabled
- RedHat Enterprise Linux 7关闭防火墙方法
- RedHat Enterprise Linux 7关闭防火墙方法
- RedHat Enterprise Linux 7关闭防火墙方法
- RedHat Enterprise Linux 7关闭防火墙方法 在之前的版本中关闭防火墙等服务的命令是 service iptables stop /etc/init.d/iptables st
- Redhat Linux 7 命令关闭防火墙
- Redhat Linux 7 命令关闭防火墙
- Redhat Linux 7 关闭防火墙命令
- Redhat Enterprise Linux中如何关闭SELinux?
- 教会你Redhat Enterprise Linux关闭SELinux
- Redhat Enterprise Linux中如何关闭SELinux?
- redhat linux/CentOS 6/7 如何关闭防火墙?
- Linux关闭防火墙方法
- redhat linux关闭防火墙和禁用selinux
- Redhat Linux 7.2 打开或关闭防火墙
- 删除RedHat Enterprise Linux的方法
- redhat关闭防火墙
- RedHat关闭防火墙
- RedHat如何关闭防火墙
- 【MVC5】8.添加一个Search方法和Search视图
- 六、Android Binder机制浅析之注册MediaPlayerService(1)
- session聚合统计之重构实现思路与重构session聚合
- flex的DataGrid的标题中添加图标以及限制单元格的输值
- SNMP监控中一些常用的OID
- RedHat Enterprise Linux 7关闭防火墙方法
- MiniUI快速入门教程(四)表单开发
- 实战录 | Kafka-0.10 Consumer源码解析
- “Accept-Encoding: gzip, deflate”问题
- tmux安装遭遇的问题解决
- 公式求幂→二分求幂→快速求幂→快速求幂取模
- servlet的配置
- 六、Android Binder机制浅析之注册MediaPlayerService(2)
- SpringMVC简单的登录