且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jps无法连接到远程jstatd

更新时间:2022-01-12 23:25:40

我的猜测是你只转发RMI注册表端口(1099),但你还需要打开另一个端口。

My guess is that you're only forwarding the RMI registry port (1099), but you need to also open another port.

检查哪些端口在偏远的一方

Check which ports on the remote side

# netstat -nap | grep jstatd

tcp        0      0 :::1099     :::*       LISTEN      453/jstatd          
tcp        0      0 :::58204    :::*       LISTEN      453/jstatd          

在这种情况下,您需要转发端口58204以及1099

In this case you will need to forward port 58204 as well as 1099