liunx 关闭开启防火墙
来源:互联网 发布:tensorflow 英文教程 编辑:程序博客网 时间:2024/06/01 19:24
一、service方式
查看防火墙状态:
[root@centos6 ~]# service iptables status
iptables:未运行防火墙。
开启防火墙:
[root@centos6 ~]# service iptables start
关闭防火墙:
[root@centos6 ~]# service iptables stop
[root@localhost ~]# chkconfig iptables off<回车>
方式2、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
查看防火墙状态:
[root@centos6 ~]# service iptables status
iptables:未运行防火墙。
1) 即时生效,重启后失效
开启防火墙:
[root@centos6 ~]# service iptables start
关闭防火墙:
[root@centos6 ~]# service iptables stop
1) 重启后生效关闭
[root@localhost ~]# chkconfig iptables off<回车>
开启: chkconfig iptables on
方式2、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
阅读全文
0 0
- liunx 关闭开启防火墙
- Liunx防火墙的开启关闭
- 关闭liunx防火墙
- liunx 关闭防火墙
- linux关闭防火墙&开启防火墙
- 开启关闭Linux防火墙
- 开启关闭Linux防火墙
- linux--开启关闭防火墙
- linux防火墙开启关闭
- RedHat9 关闭/开启防火墙
- linux防火墙关闭开启
- linux防火墙关闭开启
- Linux防火墙关闭开启
- CentOS开启关闭防火墙
- 防火墙开启与关闭
- Linux开启关闭防火墙
- centos开启关闭防火墙
- Ubuntu: 开启关闭防火墙
- 笔记:gitlab-ce 替换(2)
- 文章标题
- js for循环
- 自定义可折叠textview
- 如何利用示波器测量电源纹波
- liunx 关闭开启防火墙
- 命令行操作jar,文件写入中文乱码处理
- Robot Race UVALive
- SDK及API介绍
- stl-stack/queue/list
- SRM帮你轻松询报价,全面降低采购成本!
- c++回调机制全解:定义原型,注册,回调,封装.
- [linux]ubuntu下进行texlive+texstudio+xeCJK中文环境安装
- mysql 日期时间有关的函数