最近我们的监控工具报告一个端口已关闭,端口号是19000。
我以前从未见过这个端口,也没有找到有用的信息。做了一些测试,我发现我可以使用 localhost 进行 telnet,但不能使用 ipaddres/hostname:
[root@server01 ~]# telnet 10.122.96.60 19000
Trying 10.122.96.84...
telnet: connect to address 10.122.96.60: Connection refused
[root@server01 ~]# telnet localhost 19000
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
此外,它还被一些 java 进程和 informix 数据库使用:
[root@server01 ~]# lsof -iTCP:19000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 14492 java_user 93u IPv6 133689854 0t0 TCP localhost:38902->localhost:igrid (ESTABLISHED)
oninit 25235 informix 12u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
oninit 25277 informix 3u IPv4 33431811 0t0 TCP localhost:igrid (LISTEN)
oninit 25277 informix 6u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
oninit 25278 informix 7u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
oninit 25280 informix 4u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
oninit 25281 informix 4u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
oninit 25282 informix 6u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
oninit 25283 informix 11u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
oninit 25284 informix 6u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
oninit 25285 informix 6u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
oninit 25286 informix 6u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
oninit 25289 informix 6u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
oninit 25290 informix 12u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
oninit 25291 informix 12u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
oninit 25292 informix 12u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
oninit 25315 root 5u IPv4 33431811 0t0 TCP localhost:igrid (LISTEN)
oninit 25319 root 22u IPv4 133689855 0t0 TCP localhost:igrid->localhost:38902 (ESTABLISHED)
这是什么?我如何允许此端口进行远程连接(我们的监控工具)?最近,服务器已从物理机迁移到虚拟机,现在监控工具无法访问此端口。
具有/etc/services
:
igrid 19000/tcp # iGrid Server
igrid 19000/udp # iGrid Server
答案1
您可以尝试使用ss
和ps
命令进一步检查。输出示例,将 12345 替换为您的 PID:
$ sudo ss -lntp | grep :19000
LISTEN 0 128 127.0.0.1:19000 0.0.0.0:* users:(("program-name",pid=12345,fd=62))
$ sudo ps aux | grep 12345
oioki 12345 0.4 1.9 5132596 238256 ? Sl 09:33 3:06 /full/path/to/your/program-name