Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1386057
  • 博文数量: 188
  • 博客积分: 1784
  • 博客等级: 上尉
  • 技术积分: 2772
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-05 22:20
个人简介

发上等愿,结中等缘,享下等福;择高处立,就平处坐,向宽处行。

文章分类

全部博文(188)

文章存档

2020年(12)

2019年(11)

2018年(4)

2017年(3)

2016年(11)

2015年(22)

2014年(19)

2013年(25)

2012年(32)

2011年(49)

分类: 系统运维

2016-06-16 14:09:21

加入http服务
firewall-cmd  --permanent --zone=public --add-service=http

加入1935/tcp端口到列表

firewall-cmd  --permanent --zone=public --add-port=1935/tcp

删除一个端口

# firewall-cmd --zone=public --remove-port=6022/tcp --permanent # firewall-cmd --zone=public --remove-port=6022/udp --permanen


加载到配置文件中,否则重启后失效
firewall-cmd  --reload

查看防火墙配置列表

firewall-cmd --list-all


systemctl stop firewalld.service #停止firewall

systemctl disable firewalld.service #禁止firewall开机启动


阅读(1498) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~