启动文件中添加如下配置:

 -Djava.rmi.server.hostname=39.100.71.139 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8123 -Dcom.sun.management.jmxremote.rmi.port=8123 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false

 

其中

-Dcom.sun.management.jmxremote.port=9696 //连接端口,自定义不要与已有的端口冲突

-Dcom.sun.management.jmxremote.rmi.port=8696 //这句一定要添加,不添加就无法成功

-Dcom.sun.management.jmxremote.authenticate=false //不需要密码登陆

-Dcom.sun.management.jmxremote.ssl=false //不需要安全证书

-Djava.rmi.server.hostname=39.107.68.142 //这个ip是自己服务器的外网ip

相关文章:

  • 2022-03-03
  • 2022-02-15
  • 2021-06-06
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-05-31
  • 2021-11-11
猜你喜欢
  • 2021-05-17
  • 2021-09-22
  • 2021-04-26
  • 2022-01-08
  • 2021-12-06
相关资源
相似解决方案