Java 连接失败:连接被拒绝:远程访问tomcat的jconsole时连接

Java 连接失败:连接被拒绝:远程访问tomcat的jconsole时连接,java,tomcat,jconsole,Java,Tomcat,Jconsole,我在tomcat上部署了一个web应用程序,我通过在tomcat的bin文件夹中添加setenv.sh文件连接了jconsole和tomcat,设置如下:- export JAVA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port={portno} -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.managemen

我在tomcat上部署了一个web应用程序,我通过在tomcat的bin文件夹中添加setenv.sh文件连接了jconsole和tomcat,设置如下:-

export JAVA_OPTS="-Dcom.sun.management.jmxremote       
-Dcom.sun.management.jmxremote.port={portno}
-Dcom.sun.management.jmxremote.authenticate=false 
-Dcom.sun.management.jmxremote.ssl=false
-Djava.rmi.server.hostname={ip}"
这里,ip是安装tomcat并部署应用程序的系统的一部分。 本地jconsole工作正常,但无法从其他系统远程连接


连续获取连接失败连接被拒绝错误

您的远程系统是否位于防火墙或代理之后,或者可能配置了网络映射,以便仅在端口8080上接受远程请求?另请更改此行
-Dcom.sun.management.jmxremote=true
如何了解远程请求的网络映射以及如何允许9999端口进行请求?只需提供指南,了解无需身份验证和无需启用SSLI的简单远程访问还添加了此com.sun.management.jmxremote.rmi.port,并从以下方面获得帮助ans但仍然连接失败拒绝错误您是否添加了此行
-Dcom.sun.management.jmxremote=true
?您的远程系统是否位于防火墙或代理之后,或者可能配置了网络映射以便仅在端口8080上接受远程请求?另请更改此行
-Dcom.sun.management.jmxremote=true
如何了解远程请求的网络映射以及如何允许9999端口进行请求?只需提供指南,了解无需身份验证和无需启用SSLI的简单远程访问还添加了此com.sun.management.jmxremote.rmi.port,并从以下方面获得帮助ans但连接仍然失败拒绝错误您是否添加了此行
-Dcom.sun.management.jmxremote=true
??