最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
CentOS系统防火墙端口配置实例(启、停、开、闭)
时间:2022-06-30 21:30:36 编辑:袖梨 来源:一聚教程网
注:防火墙的基本操作命令:
| 代码如下 | 复制代码 |
| 查询防火墙状态: [root@localhost ~]# service iptables status 停止防火墙: [root@localhost ~]# service iptables stop 启动防火墙: [root@localhost ~]# service iptables start 重启防火墙: [root@localhost ~]# service iptables restart 永久关闭防火墙: [root@localhost ~]# chkconfig iptables off 永久关闭后启用: [root@localhost ~]# chkconfig iptables on |
|
下面是示例操作:
1、查看防火墙状态
[root@localhost ~]# service iptables status
2、编辑/etc/sysconfig/iptables文件。我们实例中要打开8080端口和9990端口
用编辑器打开/etc/sysconfig/iptables
3、依葫芦画瓢,我们添加8080端口和9990端口
4、保存/etc/sysconfig/iptables文件,并在终端执行
[root@localhost ~]# service iptables restart
5、从新查看防火墙状态
[root@localhost ~]# service iptables status
7、其他端口的开放模式就是类似如此开放模式。
相关文章
- deepseek入口-一键直达 03-16
- PicACG永久网页版-嗶咔PicACG最新地址 03-16
- 51漫画在线阅读免费看完整版高清漫画入口页面-51漫画官方正版下载安装最新版本页面 03-16
- JK漫画APP官方下载入口在哪-JK漫画安卓版下载地址与在线阅读指南 03-16
- X网页版-官方登录入口 03-16
- 海外版TikTok免费畅玩通道-海外版TikTok官网直达入口 03-16




