配置如下:
采用不用ssl,不用用户名密码的方式
java
-jar
-Djava.rmi.server.hostname=localhost
-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
xxx.jar
连接时报错
提示这个说明配置应该是生效了。
后来发现
将配置修改为:
-Djava.rmi.server.hostname=10.101.4.145
填写服务端的实际IP地址就能连接了。