CentOS7上防火墙使用
来源:互联网 发布:wow采集助手数据库 编辑:程序博客网 时间:2024/06/03 22:49
CentOS7使用firewall而不是iptables。所以解决这类问题可以通过添加firewall的端口,使其对我们需要用的端口开放。
1.使用命令 firewall-cmd --state查看防火墙状态。得到结果是running或者not running
2.在running 状态下,向firewall 添加需要开放的端口
命令为 firewall-cmd --permanent --zone=public --add-port=8080/tcp //永久的添加该端口。去掉--permanent则表示临时。
4.firewall-cmd --reload //加载配置,使得修改有效。
5.使用命令 firewall-cmd --permanent --zone=public --list-ports //查看开启的端口,出现8080/tcp这开启正确
开启防火墙的命令
systemctl start firewalld.service
关闭防火墙的命令
systemctl stop firewalld.service
开机自动启动
systemctl enable firewalld.service
关闭开机自动启动
systemctl disable firewalld.service
查看防火墙状态
systemctl status firewalld
转自:http://blog.csdn.net/karan_01/article/details/73798678
阅读全文
0 0
- CentOS7上防火墙使用
- centos7防火墙使用(firewalld)
- Centos7 防火墙使用
- centos7 防火墙使用详解
- CentOS7 防火墙命令使用
- postgres CENTOS7 上防火墙问题。
- CentOS7上临时关闭防火墙
- centos7 使用iptables配置防火墙
- Centos7.X 使用iptabes防火墙
- 如何关闭CentOS7上的firewall防火墙
- 关于centos7的firewall防火墙命令使用
- CentOS7防火墙firewalld容易配置和使用
- CentOS7防火墙firewalld容易配置和使用
- CentOS7使用iptables防火墙开放端口
- centos7下iptables防火墙的使用
- centos7中防火墙firewalld的使用
- CentOS7使用打开关闭防火墙与端口
- CentOS7防火墙
- Android开发之---Handler
- 完全背包入门题【简单到死啊】
- The Heaviest Non-decreasing Subsequence Problem
- 2017 ACM-ICPC 亚洲区(乌鲁木齐赛区)网络赛---banana
- 【leetcode】665. Non-decreasing Array(Python & C++)
- CentOS7上防火墙使用
- TFT显示屏参数设置
- Reverse Linked List II
- 周中训练笔记+POJ2777+2828(9.28)
- 大型网站架构与分布式架构
- idea安装ZK framework plugin
- [Android study note]安装Apache服务器
- hdu_2594_求串s1的前缀和串s2后缀最大相同部分
- ACM周中总结—9月28日