如何在服务器中找到JMX端口? [英] How to find the JMX port in a server?
本文介绍了如何在服务器中找到JMX端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我能看到JAVA OPTS参数,我相信我能搞清楚。我想使用Jconsole监视一个hornetq服务器,所以我需要端口号。
I am sure I can figure it out if I can see the JAVA OPTS parameters. I want to monitor a hornetq server using Jconsole, so I need the port number.
我记得在我连接它的时候使用了一些像java grep等命令。
I remember using some command like java grep etc when I connected to it a while back.
推荐答案
如果您知道流程编号,可以使用 netstat 查找程序正在侦听的端口,例如
If you know the process number you can use netstat to find what ports the program is listening on with something like
$ netstat -apn | grep <proc num>
JMX监听器的传统端口是1099.
The conventional port for JMX listeners is 1099.
这篇关于如何在服务器中找到JMX端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文