在Linux下,tomcat/bin/catalina.sh文件中JAVA_OPTS后增加了
-Dcom.sun.management.jmxremote.port=1021
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false 后,启动tomcat正常,并且能从本地打开JConsole访问服务器的1021端口,但停止tomcat的时候抛出异常,异常如下:
“代理抛出异常: java.rmi.server.ExportException: Port already in use: 1021; nested exception is: java.net.BindException: Address already in use”
除了在tomcat stop前kill占用1021端口的进程外,还有什么好的办法解决此问题。
-Dcom.sun.management.jmxremote.port=1021
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false 后,启动tomcat正常,并且能从本地打开JConsole访问服务器的1021端口,但停止tomcat的时候抛出异常,异常如下:
“代理抛出异常: java.rmi.server.ExportException: Port already in use: 1021; nested exception is: java.net.BindException: Address already in use”
除了在tomcat stop前kill占用1021端口的进程外,还有什么好的办法解决此问题。