Files
StudyDiary/10-WebClipper/Linux如何添加防火墙服务Warning ALREADY_ENABLED 8080tcp.md
T
2026-07-23 20:36:13 +08:00

170 lines
16 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Linux如何添加防火墙服务Warning: ALREADY_ENABLED: 8080:tcp"
source: "https://blog.csdn.net/javakaka666/article/details/140772896"
author:
- "[[javakaka666]]"
published: 2024-07-29
created: 2025-11-25
description: "文章浏览阅读7k次,点赞7次,收藏10次。Warning: ALREADY_ENABLED: 8080:tcp_already enabled"
tags:
- "clippings"
---
AI 搜索
原创 于 2024-07-29 15:45:14 发布 · 7k 阅读 · 10 ·
CC 4.0 BY-SA版权
版权声明:本文为博主原创文章,遵循 [CC 4.0 BY-SA](http://creativecommons.org/licenses/by-sa/4.0/) 版权协议,转载请附上原文出处链接和本声明。
文章标签:
[#linux](https://so.csdn.net/so/search/s.do?q=linux&t=all&o=vip&s=&l=&f=&viparticle=&from_tracking_code=tag_word&from_code=app_blog_art) [#java](https://so.csdn.net/so/search/s.do?q=java&t=all&o=vip&s=&l=&f=&viparticle=&from_tracking_code=tag_word&from_code=app_blog_art) [#服务器](https://so.csdn.net/so/search/s.do?q=%E6%9C%8D%E5%8A%A1%E5%99%A8&t=all&o=vip&s=&l=&f=&viparticle=&from_tracking_code=tag_word&from_code=app_blog_art)
背景:新装的 centos 服务器需要启动端口报错, Warning: ALREADY\_ENABLED:8080:tcp
解决办法: **先删除端口再重新添加解决**
具体步骤
删除指定端口
firewall-cmd --zone=public --remove-port=8080/tcp --permanent
开启指定端口
firewall-cmd --zone=public --add-port=8080/tcp --permanent
查看以开放的端口
firewall-cmd --zone=public --list-ports
重启 防火墙
注意: **开放端口后一定要重启防火墙,不然不会生效**
firewall-cmd --reload[centeros7登录 *防火墙*](https://blog.csdn.net/weixin_36934930/article/details/90515707)
[唯一的切慕,唯一的诗歌……](https://blog.csdn.net/weixin_36934930)
05-24 1257[若出现Host key verification failed ssh-keygen -R 107.191.51.51 CentOS7这个版本的 *防火墙* 默认使用的是firewall,与之前的版本使用iptables不一样。按如下方便配置 *防火墙* : 1、关闭 *防火墙* : sudo systemctl stop firewalld.service 2、关闭开机启动: sudo systemctl disa...](https://blog.csdn.net/weixin_36934930/article/details/90515707)[goldengate add trandata显示最小附加日志 *already* enable,但是info trandata显示disabled](https://blog.csdn.net/u014237598/article/details/82377555)
[Mikya\_清风的博客](https://blog.csdn.net/u014237598)
09-04 2234[问题描述: 数据库版本11.2.0.4,操作系统版本:windows server 2012,goldengate版本12.1.2.1.0 在给ogg同步表 *添加* trandata的时候,提示supplemental redo log data is *already* *enabled* 。但是使用info trandata查看的时候,却显示supplemental redo log data is d...](https://blog.csdn.net/u014237598/article/details/82377555)[*linux* 允许通过 *防火墙* 端口开启\_ *warning**:**already* *enabled**:* 3306...](https://blog.csdn.net/GYJ_love/article/details/105429648)
11-21[具体演示了如何指定端口范围4400-4600通过UDP协议的 *防火墙*,如何关闭80/ *tcp* 端口,以及如何查询当前 *防火墙* 已通过的所有端口。 firewall-cmd --zone=public --add-port=4400-4600/udp --permanen(指定端口范围为4400-4600通过 *防火墙*) *Warning**:**ALREADY* \_ *ENABLED**:* 3306*:**tcp* (说明3306端口通过成功) firewall-cmd --zone=public...](https://blog.csdn.net/GYJ_love/article/details/105429648)[CentOS7配置指定端口通过 *防火墙* \_ *already* *enabled*](https://blog.csdn.net/cuomodao4449/article/details/87074693)
11-23[*添加**:*firewall-cmd --zone=public --add-port=3306/ *tcp* --permanent (--permanent永久生效,没有此参数重启后失效) 注*:**Warning**:**ALREADY* \_ *ENABLED**:* 3306*:**tcp* (说明3306端口通过成功) firewall-cmd--zone=public --add-port=4400-4600/udp --permanen(指定端口范围为4400-4600通过 *防火墙*) 重新载入*:*firewall-cmd...](https://blog.csdn.net/cuomodao4449/article/details/87074693)[*Linux* 启用端口](https://devpress.csdn.net/v1/article/detail/127514028)
[Bug](https://blog.csdn.net/Hg_Re_B)
10-25 9776[*防火墙* ,端口](https://devpress.csdn.net/v1/article/detail/127514028)[*Linux* 端口管理*:*开启失败解决策略,](https://blog.csdn.net/qq_43708765/article/details/134290311)
11-23[查看以开放的端口 重启 *防火墙* *linux* *添加* 开放端口后重启 *防火墙* 却却无法访问开放端口,重新输入开放端口命令却提示 *Warning**:**ALREADY* \_ *ENABLED**:* 9004*:**tcp*,先删除端口再重新 *添加* 解决 删除指定端口 firewall-cmd--zone=public--remove-port=9004/ *tcp* --permanent 一键获取完整项目代码 *java* 1 开启指定端口 firewall-cmd--zone=p...](https://blog.csdn.net/qq_43708765/article/details/134290311)[CentOS *服务器* 相关教程\_ *already* - *enabled*](https://blog.csdn.net/m0_37605642/article/details/127472541)
11-23[*Warning**:**ALREADY* \_ *ENABLED**:* 9055*:**tcp* (说明9055端口通过成功) 一键获取完整项目代码bash 1 5.3 开放指定端口 # 开放端口,(–permanent永久生效,没有此参数重启后失效) firewall-cmd --zone=public --add-port= *8080* / *tcp* --permanent # 移除指定端口 firewall-cmd --zone=public --remove-port= *8080* / *tcp* --pe...](https://blog.csdn.net/m0_37605642/article/details/127472541)[*linux* 操作 *防火墙* , *添加* *服务* 、端口](https://devpress.csdn.net/v1/article/detail/116238483)
[冷晨四点的太阳](https://blog.csdn.net/hao310810401)
04-28 304[操作 *防火墙* , *添加* 或删除端口,需要root权限。 1. 查看 *防火墙* 状态:systemctl status firewalld active(running):开启状态,正在运行中 inactive(dead):关闭状态,未在运行 2. 开启 *防火墙* :systemctl start firewalld,没有任何提示,表示开启成功 3. 关闭 *防火墙* :systemctl stop firewalld 4. *添加* mysql *服务* 到 *防火墙* ,并加载 firewall-cmd --permanent --zone](https://devpress.csdn.net/v1/article/detail/116238483)[*linux* 开启端口、 *防火墙* 操作\_9955是什么端口](https://blog.csdn.net/qq_40963664/article/details/125023355)
10-31[开启指定端口 firewall-cmd --zone=public --add-port=9955/ *tcp* --permanent 一键获取完整项目代码 *Warning**:**ALREADY* \_ *ENABLED**:* 9955*:**tcp* (说明9955端口通过成功) 或者开启端口区域(指定端口范围为4400-4600通过 *防火墙*) firewall-cmd --zone=public --add-port=4400-4600/udp --permanen...](https://blog.csdn.net/qq_40963664/article/details/125023355)[*Linux* 启用端口\_ *linux* 开启端口](https://blog.csdn.net/Hg_Re_B/article/details/127514028)
10-9[某一个端口在 *服务器* 中,已经被开启,如果再次开启这个端口,命令行打印 *ALREADY* \_ *ENABLED**:*端口*:*通讯协议,表示重复开启某个端口。3.3.关闭/查看端口# 关闭指定端口 \[root@localhost /\]$ firewall-cmd --zone=public --remove-port=80/ *tcp* --permanent # 查看通过的端口 \[root@localhost /\]$ firewall-cmd --zone=...](https://blog.csdn.net/Hg_Re_B/article/details/127514028)[*linux* *添加* *服务* *防火墙*,*Linux* *防火墙* 设置-DNS *服务器* 篇](https://blog.csdn.net/weixin_36024106/article/details/116684580)
[weixin\_36024106的博客](https://blog.csdn.net/weixin_36024106)
05-02 512[亲测可用,对于刚刚搭建了DNS *服务器* ,需要开启 *防火墙* 但又不知道该怎么设置的朋友,可以参考下面的内容,或者直接使用我下面给出的脚本程序。如果 *服务器* 是作为DNS *服务器* 使用的,针对绝大多数的情况,为了开启 *防火墙* 同时又能正常地提供相关的 *服务* ,一般的设置如下:【1】第一步:清除默认 *防火墙* 规则iptables-Fiptables-Xiptables-Z·参数说明:-F:清除所有的已制定的规则-X:清除所...](https://blog.csdn.net/weixin_36024106/article/details/116684580)[*Warning**:**ALREADY* \_ *ENABLED**:**8080**:**tcp*](https://wenku.csdn.net/answer/4po368v0w1)
06-27[在处理 \` *Warning**:**ALREADY* \_ *ENABLED**:**8080* / *tcp* \` 警告时,通常发生在尝试通过 \`firewall-cmd\` 命令重复 *添加* 已经开放的端口。为了避免该警告并确保配置操作成功,可以采取以下方式: 如果目标是重新配置或确认 *8080* 端口...](https://wenku.csdn.net/answer/4po368v0w1)[Nginx启动成功,浏览器却启动不了的解决方法\_nginx正常启动但是浏览器...](https://blog.csdn.net/OMGcome/article/details/123289921)
11-24[firewall-cmd --zone=public --add-port=80/ *tcp* --permanent 像我这个80端口是启动过了的所以会报*:**Warning**:**ALREADY* \_ *ENABLED**:* 80*:**tcp* 这个警告 4)重启 *防火墙* *服务* systemctl restart firewalld.service 重启之后你重新在浏览器输入你的ip应该就可以了 5)成功界面...](https://blog.csdn.net/OMGcome/article/details/123289921)[...Config right?*Warning**:**ALREADY* \_ *ENABLED* \_redis client on error...](https://blog.csdn.net/TIG_JS/article/details/140604732)
11-20[*Warning**:**ALREADY* \_ *ENABLED**:* 6379*:**tcp* 我的redis.conf配置*:* bind 0.0.0.0 设置了 requirepass 密码 daemonize yes 问题解决 redis拒绝连接*:*Could not connect to Redis at 192.168.xx.xx*:*6379*:*Connection refused\_could not connect to redis at 192.168.102.31*:*6379*:*\-CSDN博客...](https://blog.csdn.net/TIG_JS/article/details/140604732)[*Warning**:**ALREADY* \_ *ENABLED**:* 80*:**tcp* 什么意思](https://wenku.csdn.net/answer/6f0uvnuupe)
[
最新发布
](https://wenku.csdn.net/answer/6f0uvnuupe)
10-30[我们正在讨论的是关于 *防火墙* 规则 *添加* 时出现的警告信息:' *Warning**:**ALREADY* \_ *ENABLED**:* 80*:**tcp* '。 这个警告通常在使用类似\`firewall-cmd\`这样的工具 *添加* *防火墙* 规则时出现,意思是试图 *添加* 的规则(开放 *TCP* 协议的80端口...](https://wenku.csdn.net/answer/6f0uvnuupe)[宝塔系统 *防火墙* 放行5173端口设置端口失败, err*:**Warning**:**ALREADY* \_ *ENABLED**:* 5173*:**tcp*](https://wenku.csdn.net/answer/1mpdwr2gai)
03-31[嗯,用户遇到了宝塔面板 *防火墙* 设置端口5173失败的问题,提示 *ALREADY* \_ *ENABLED* 错误。我需要先理解这个问题的原因。根据引用中的信息,比如引用\[2\]提到了查看端口是否开放以及 *添加* 移除端口的命令,可能这个错误是因为...](https://wenku.csdn.net/answer/1mpdwr2gai)[ubuntu\_module rewrite *already* *enabled*](https://blog.csdn.net/qdujunjie/article/details/8667825)
9-17[Module rewrite *already* *enabled* vim/etc/apache2/httpd.conf sudo /etc/init.d/apache2 restart ubuntu下如何安装 *JAVA*?如果单纯只是安装jdk,很麻烦的,中间有很多配置,其实只要直接安装eclipse就可以了,他会直接帮你安装jdk并且配置好*:*apt-get install eclipse...](https://blog.csdn.net/qdujunjie/article/details/8667825)[*linux* 开启端口 *8080*](https://blog.csdn.net/weixin_42390329/article/details/107939406)
[weixin\_42390329的博客](https://blog.csdn.net/weixin_42390329)
08-11 3358[*防火墙* 管理 centos7默认安装了firewalld *防火墙* 查看 *防火墙* 状态 \[root@admin ~\]# firewall-cmd --state not running (关闭显示not running,开启显示running) 开启 *防火墙* \[root@admin/\]# systemctl start firewalld.service \[root@admin /\]# firewall-cmd --state running \[root@admin /\]# 关闭 *防火墙* \[root@admin /\]#](https://blog.csdn.net/weixin_42390329/article/details/107939406)[问题 *java*.net.ConnectException*:* connection failed*:* socket,host=localhost,port=8100,*tcp* NoDelay=1](https://blog.csdn.net/weixin_30394669/article/details/95422959)
[weixin\_30394669的博客](https://blog.csdn.net/weixin_30394669)
10-06 2937[http*:*//blog.csdn.net/yl419440513/article/details/6872614 *java*.net.ConnectException*:* connection failed*:* socket,host=localhost,port=8100,*tcp* NoDelay=1*:**java*.net.ConnectException*:* Connection refused*:* c...](https://blog.csdn.net/weixin_30394669/article/details/95422959)[解决Port 8848 is *already* in use端口号被占用](https://blog.csdn.net/qq_37570710/article/details/121633333)
[qq\_37570710的博客](https://blog.csdn.net/qq_37570710)
11-30 5263[启动项目提示:Port 8848 is *already* in use 解决: 1、打开dos窗口 2、获取到端口号和线程,输入:netstat -ano|findstr 8848 3、使用上一步获取到的线程,杀死线程,输入:taskkill /pid 1244 /f](https://blog.csdn.net/qq_37570710/article/details/121633333)[centos firewall *防火墙* 使用](https://blog.csdn.net/qq_34874784/article/details/124984979)
[qq\_34874784的博客](https://blog.csdn.net/qq_34874784)
05-26 2395[开启 *防火墙* systemctl start firewalld.service 关闭 *防火墙* systemctl stop firewalld.service 重启 *防火墙* service firewalld restart 开启指定端口9501 firewall-cmd --zone=public --add-port=80/ *tcp* --permanent firewall-cmd --zone=public --add-port=443/ *tcp* --permanent firewall-cmd --zon.](https://blog.csdn.net/qq_34874784/article/details/124984979)[*Linux* 自带 *防火墙* 基本使用](https://blog.csdn.net/Mister_yang/article/details/118931548)
[Mister\_yang的博客](https://blog.csdn.net/Mister_yang)
07-20 4906[文章目录四、 *Linux* 自带 *防火墙* 1. 查看 *linux* 的 *防火墙* 状态2. 查看已经对外开放的端口3. 开放需要开放的端口 并重载 *防火墙* 4. filewalld常用命令 四、 *Linux* 自带 *防火墙* 前言: CentOS7 端口的开放关闭查看都是用 *防火墙* 来控制的 1. 查看 *linux* 的 *防火墙* 状态 ### 查看防墙状态 \[root@8 ~\]# systemctl status firewalld ● firewalld.service - firewalld - dynamic firewall daemon](https://blog.csdn.net/Mister_yang/article/details/118931548)[*linux* 开启端口失败](https://devpress.csdn.net/v1/article/detail/134290311)
[qq\_43708765的博客](https://blog.csdn.net/qq_43708765)
11-08 1486[*linux* *添加* 开放端口后重启 *防火墙* 却却无法访问开放端口,重新输入开放端口命令却提示 *Warning**:**ALREADY* \_ *ENABLED**:* 9004*:**tcp* ,先删除端口再重新 *添加* 解决。注意:开放端口后一定要重启 *防火墙* ,不然不会生效。](https://devpress.csdn.net/v1/article/detail/134290311)[*linux* 下 *防火墙* 常见命令(Centos7)](https://blog.csdn.net/JangBingYang/article/details/125782175)
[JangBingYang的博客](https://blog.csdn.net/JangBingYang)
07-14 4392[*Linux* *防火墙* 常用指令](https://blog.csdn.net/JangBingYang/article/details/125782175)[*防火墙* 基础操作](https://blog.csdn.net/qq_35237533/article/details/121372189)
[一起来摸鱼](https://blog.csdn.net/qq_35237533)
11-17 5732[1.增加 *防火墙* 端口号: 端口范围 4400-4600 firewall-cmd --zone=public --add-port=4400-4600/udp --permanen 指定端口 4369 firewall-cmd --zone=public --add-port=4369/udp --permanen *Warning**:**ALREADY* \_ *ENABLED**:* 4369*:**tcp* (说明4369端口通过成功) 2.关闭指定端口 firewall-cmd --zone=public --remove-po](https://blog.csdn.net/qq_35237533/article/details/121372189)
评论
被折叠的 0 条评论 [为什么被折叠?](https://blogdev.blog.csdn.net/article/details/122245662)[到【灌水乐园】发言](https://bbs.csdn.net/forums/FreeZone)
添加红包
实付 元
[使用余额支付](https://blog.csdn.net/javakaka666/article/details/)
点击重新获取
扫码支付
钱包余额 0
抵扣说明:
1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。
[余额充值](https://i.csdn.net/#/wallet/balance/recharge)
举报
[![](https://i-operation.csdnimg.cn/images/df6c67fa661c48eba86beaeb64350df0.gif)](https://mall.csdn.net/vip?utm_source=25618_vip_blogrighticon)
[AI 搜索](https://ai.csdn.net/chat/?utm_source=cknow_pc_blog_right_hover) [智能体](https://ai.csdn.net/chat/cmd?utm_source=cknow_pc_blog_right_hover) [AI 编程](https://ai.csdn.net/chat/coding?utm_source=cknow_pc_blog_right_hover) [AI 作业助手](https://ai.csdn.net/chat/homework?utm_source=cknow_pc_blog_right_hover)
隐藏侧栏 ![程序员都在用的中文IT技术交流社区](https://g.csdnimg.cn/side-toolbar/3.6/images/qr_app.png)
程序员都在用的中文IT技术交流社区
![专业的中文 IT 技术社区,与千万技术人共成长](https://g.csdnimg.cn/side-toolbar/3.6/images/qr_wechat.png)
专业的中文 IT 技术社区,与千万技术人共成长
![关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!](https://g.csdnimg.cn/side-toolbar/3.6/images/qr_video.png)
关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!
客服 返回顶部