当前位置:网站首页>firewalld 配置文件的位置
firewalld 配置文件的位置
2022-06-23 07:18:00 【时光凉春衫薄】
开放端口
永久开放2个端口
firewall-cmd --permanent --zone=public --add-port=80/tcp
firewall-cmd --permanent --zone=public --add-port=443/tcp
firewall-cmd --reload
在 /etc/firewalld/zones / public.xml里面:
<?xml version="1.0" encoding="utf-8"?>
<zone>
<short>Public</short>
<description>For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.</description>
<service name="ssh"/>
<service name="dhcpv6-client"/>
<port protocol="tcp" port="80"/>
<port protocol="tcp" port="443"/>
</zone>边栏推荐
- Qt工程报错:-1: error: Cannot run compiler ‘clang++‘. Output:mingw32-make.exe
- js中的同步和异步
- QT reading XML files using qdomdocument
- Quickly delete the node in the code_ modules
- How to tag and label naming before the project release
- The sandbox has reached a cooperation with football player to bring popular football cartoons and animation into the metauniverse
- [深度学习][原创]如何不用yolov5权重或者模型进行目标检测和绘制map等参数图
- Mathematical knowledge: fast power fast power
- RFID data security experiment: C # visual realization of parity check, CRC redundancy check and Hamming code check
- 左乘右乘矩阵问题
猜你喜欢

Design of temperature detection and alarm system based on 51 single chip microcomputer

Product axure9 (English version), prototype design background dynamic secondary menu display content

The road to hcip MPLS

Abnormal logic reasoning problem of Huawei software test written test

在线文本过滤小于指定长度工具

Test APK exception control nettraffic attacker development

Acwing第 56 場周賽【完結】

How MySQL converts a date to a number

Product axure9 (English version), prototype design and production pull-down secondary menu
![[cloud computing event] vocational skill competition -- container development example pig rapid development framework](/img/4b/393b5980090330602a501867c60089.png)
[cloud computing event] vocational skill competition -- container development example pig rapid development framework
随机推荐
Kwai 350014
EXCEL VBA 入门与实用例子
MySQL慢查询记录
[markdown] markdown tutorial summary
Heuristic search strategy
vs在连接SQL时出现的问题myconn.OPen();无法运行
1278_FreeRTOS_借助prvAddCurrentTaskToDelayedList接口理解delayed task
JS to determine the added and decreased elements of two arrays
【星球精选】如何高效构建 Roam 与 theBrain 间细粒度双向链接?
【Kubernetes】Kubernetes各大版本的最新版本下载地址
Qt 使用QDomDocument读取xml文件
Principle of skip table
Unity to wechat applet games
GIF验证码分析
某年某月某公司的面试题(1)
3dmax插件开发环境配置及FileExport和Utilities模板测试
Guava Cache 使用小结
Product axure9 (English version), prototype design and production pull-down secondary menu
NFS special attention to permissions
Unity图片加载和保存