旧版本的修改/etc/iptables防火墙文件已不推荐使用;目前使用如下命令可解决linux下端口不通问题
firewall-cmd --add-port=8080/tcp --permanent 添加端口
systemctl restart firewalld 重启防火墙
linux无法访问端口时防火墙添加端口新命令
最新推荐文章于 2024-04-16 22:40:40 发布
旧版本的修改/etc/iptables防火墙文件已不推荐使用;目前使用如下命令可解决linux下端口不通问题
firewall-cmd --add-port=8080/tcp --permanent 添加端口
systemctl restart firewalld 重启防火墙