SpringBoot程序启动报错:
2023-07-12 14:42:15.311 WARN 19604 --- [MI TCP Accept-0] sun.rmi.transport.tcp : RMI TCP Accept-0: accept loop for ServerSocket[addr=0.0.0.0/0.0.0.0,localport=56295] throws
java.io.IOException: The server sockets created using the LocalRMIServerSocketFactory only accept connections from clients running on the host where the RMI remote objects have been exported.
at sun.management.jmxremote.LocalRMIServerSocketFactory$1.accept(LocalRMIServerSocketFactory.java:114) ~[na:1.8.0_333]
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTransport.java:405) [na:1.8.0_333]
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:377) [na:1.8.0_333]
at java.lang.Thread.run(Thread.java:750) [na:1.8.0_333]
解决方案:
VM options新增启动参数:-Dcom.sun.management.jmxremote.local.only=false
注意:本文归作者所有,未经作者允许,不得转载