centos开放端口

港控/mmm° 2022-08-07 12:46 294阅读 0赞

#/etc/init.d/iptables status ## 查看防火墙状态
#/etc/init.d/iptable stop ## 本次关闭防火墙

#/etc/init.d/iptable restart ## 重启防火墙

/etc/sysconfig/iptables文件中

开放指定端口
/sbin/iptables -I INPUT -p tcp —dport 8080 -j ACCEPT #8080

发表评论

表情:
评论列表 (有 0 条评论,294人围观)

还没有评论,来说两句吧...

相关阅读

    相关 centos 开放防火墙端口

    在使用 linux 系统时,经常需要连接某些端口;而这些端口又经常被防火墙阻拦,导致连接超时 本文介绍如何开放这些端口,以提供连接   输入如下命令编辑防火墙配置文件