惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
阮一峰的网络日志
阮一峰的网络日志
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Threat Research - Cisco Blogs
P
Privacy & Cybersecurity Law Blog
The Hacker News
The Hacker News
H
Heimdal Security Blog
W
WeLiveSecurity
L
LINUX DO - 热门话题
Hacker News: Ask HN
Hacker News: Ask HN
WordPress大学
WordPress大学
The Last Watchdog
The Last Watchdog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
D
DataBreaches.Net
I
Intezer
Webroot Blog
Webroot Blog
C
Cisco Blogs
AWS News Blog
AWS News Blog
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
罗磊的独立博客
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
Schneier on Security
Schneier on Security
宝玉的分享
宝玉的分享
博客园 - 叶小钗
PCI Perspectives
PCI Perspectives
D
Docker
Scott Helme
Scott Helme
NISL@THU
NISL@THU
J
Java Code Geeks
B
Blog RSS Feed
Google Online Security Blog
Google Online Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Exploit Database - CXSecurity.com
AI
AI
美团技术团队
Cloudbric
Cloudbric
月光博客
月光博客
P
Proofpoint News Feed
T
Tailwind CSS Blog
Google DeepMind News
Google DeepMind News
小众软件
小众软件
www.infosecurity-magazine.com
www.infosecurity-magazine.com
The Cloudflare Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org

博客园 - mabiao008

idea更新代码时Merge和Rebase区别 CC skill Mac下载免费软件遇到问题解决 CQRS 错误码code是int类型好还是String类型好 idea2025版本破解 pgsql切换当前会话的模式 java程序中增加mongodb的联合索引 文档启动脚本报错:-bash: ./app.sh: /bin/bash^M: bad interpreter: No such file or directory Milvus索引 pandoc使用 idea把unicode转为中文 idea 插件分享 java项目处理OFD文件 java项目无法读取resources目录下的文件 三种数据对象的区别 Linux环境aspose插件word转pdf中文乱码解决方案 java List报错Method threw ‘java.lang.UnsupportedOperationException‘ exception. 解决 java字段值为null,转json后不存在该字段对应的key 格式化json大文件 springboot项目启动报错Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun. com.alibaba.excel.exception.ExcelGenerateException: Can not close IO 关于linux端口号 linux下生成pdf文件名遇到问题 把页面查询到的数据导出PDF文件(html中的在线表单下载为pdf文件)
linux的TCP端口问题
mabiao008 · 2022-10-17 · via 博客园 - mabiao008

大运维项目安装好了,今天开始安装agent,在监控上看到所有服务器/虚机的指标数据。

 出现一个问题,无论我换成什么端口,都是报错TCP连接失败

我的思路是先看下8082端口有没有开启, 执行查看所有端口命令

 可以看到8082已经启用了,看下被谁用的

可以看到是被大运维平台项目用的,那就没错了。那就应该是这个TCP端口没有开放。排查的流程如下:

怎么查看防火墙所开启的端口?
1、点击终端,或者在右键菜单在此打开终端。
2、输入打开的命令:【firewall-cmd --zone=public --list-ports】,然后回车。
3、如果看到下面的提示,那么说明未曾启动服务。
4、然后输入启动命令:【systemctl start firewalld】。
5、重复打开的命令:【firewall-cmd --zone=public --list-ports】。
6、那么此时即可看到打开的端口号。

我们按照这个来执行看下:

[root@02 bin]# firewall-cmd --zone=public --list-ports
9006
/tcp [root@02 bin]# firewall-cmd --query-port=8082/tcp #看下是否有8082 no [root@02 bin]# firewall-cmd --permanent --add-port=8082/tcp success [root@02 bin]# firewall-cmd --reload success [root@02 bin]# firewall-cmd --zone=public --list-ports 9006/tcp 8082/tcp

到此,问题解决了