Centos7.6 设置防火墙
Linux 中 系统-Centos7.6X 中设置安全组防火墙
1、打开防火墙
systemctl start firewalld.service2、关闭防火墙
systemctl stop firewalld.service3、禁止开机启动
systemctl disable firewalld.service4、重启防火墙
systemctl restart firewalld.service5、查看防火墙运行状态
firewall-cmd --state6、开放端口
firewall-cmd --add-port=6379/tcp --permanent
firewall-cmd --reload7、移除已开放端口
firewall-cmd --remove-port=6379/tcp --permanent
firewall-cmd --reload8、查询端口是否开放
firewall-cmd --query-port=6379/tcp9、查看防火墙所有开放的端口
firewall-cmd --zone=public --list-ports10、查看监听的端口
netstat -lnpt
## PS:centos7默认没有 netstat 命令,需要安装 net-tools 工具,yum install -y net-tools11、查看进程的详细信息
ps 683212、中止进程
kill -9 6832
Centos7.6 设置防火墙相关推荐
- CentOS7如何设置防火墙
1. firewall配置 在旧版本的CentOS中,是使用 iptables 命令来设置防火墙的.但是,从CentOS7开始,默认就没有安装iptables,而是改用firewall来配置防火墙. ...
- centos7中设置防火墙
开启firewall:systemctl start firewalld.service 停止firewall:systemctl stop firewalld.service 禁止firewall开 ...
- CentOS7安装MySQL数据库、设置防火墙
CentOS7安装MySQL数据库步骤 MySQL数据库安装 下载wget命令 删除已安装的MySQL服务 安装MySQL安装包 可能遇到的问题 问题一 问题二 MySQL数据库配置 获取临时密码 · ...
- CentOS7 设置防火墙、开放指定端口操作
CentOS7 设置防火墙操作.开放指定端口操作 1, 查看防火墙状态:firewall-cmd --statesystemctl status firewalld.service2, 开启防火墙:s ...
- CentOS之——CentOS7安装iptables防火墙
CentOS7默认的防火墙不是iptables,而是firewalle. 安装iptable iptable-service #先检查是否安装了iptables service iptables ...
- CentOS7安装iptables防火墙
2019独角兽企业重金招聘Python工程师标准>>> CentOS7默认的防火墙不是iptables,而是firewalle. 安装iptable iptable-service ...
- CentOS7 如何关闭防火墙
centos7 默认防火墙是firewalld 所以查看防火墙状态命令:systemctl status firewalld.service CentOS7默认的防火墙不是iptables,而 ...
- 【CentOS7】设置静态IP地址
[CentOS7]设置静态IP地址 转载:https://www.cnblogs.com/yangchongxing/p/10645871.html 图像化修改 nmtui 查看当前网卡名称 # if ...
- 深度linux安装防火墙,CentOS7安装iptables防火墙
CentOS7默认的防火墙不是iptables,而是firewalle. 安装iptable iptable-service #先检查是否安装了iptables service iptables st ...
最新文章
- Common Used Excel Formulas
- 此应用无法在你的电脑上运行_能直运行iOS应用!苹果新macOS翻车 正式版下载后无法安装...
- HDU-4282 A very hard mathematic problem 技巧枚举+二分
- 视频质量检测中的TP、FP、Reacll、Precision
- 支付宝二面微服务、分布式架构?太真实了!
- DWZ中navTab使用解析
- C++类中的Static关键字
- offsetLeft,Left,clientLeft的区别
- Python字符串串联
- 视频帧AI分析后编码
- 代码源文件中去掉断元字符^M的方法介绍
- 点歌机显示一直弹出连接服务器,点歌机老是显示正在连接云服务器
- 多媒体计算机软件按功能分为,多媒体软件可分为
- iPad 生产力指南:如何把MathType7安装在iPad中,方便写公式,写论文,公式编辑器,完全免费
- vs2019,C#,MySQL创建图书管理系统7(用户借/还书)
- “辉夜姬”:多利之后的动物明星
- 人力资源数据分析(包含数据来源文件)
- 希尔伯特变换(Hilbert Transform)的性质
- Microbiome:微生物组名词定义
- 人工智能应用于心电图:这6篇论文值得收藏