There are many reasons for this problem, and the title does not indicate the specific problem. Here, I will only talk about my operations, the problems encountered and their solutions, hoping to play a role in attracting others. Start t
There are many reasons for this problem, and the title does not indicate the specific problem.
Here, I will only talk about my operations, the problems encountered and their solutions, hoping to play a role in attracting others.
When tomcat is started, the following error is returned:
Error: Exception thrown by the agent: java. rmi. server. ExportException: Port already in use: 7800; nested exception is:
Java.net. BindException: Address already in use
Check configuration files such as $ {TOMCAT_HOME}/conf/server. xml, context. xml, and web. xml. no port 7800 is configured.
So google search, an article gave me a prompt: https://bowerstudios.com/node/636
Therefore, the answer is found in the $ {TOMCAT_HOME}/bin/catalina. sh startup file.
JAVA_OPTS = "-server-Xms2048m-Xmx2048m-XX: PermSize = 512 m-XX: MaxPermSize = 512 m-Dcom. sun. management. jmxremote-Dcom. sun. management. jmxremote. pwd. file =/opt/app/appcode/jmxremote. password-Dcom. sun. management. jmxremote. ssl = false-Dcom. sun. management. jmxremote. authenticate = false-Dcom. sun. management. jmxremote. port = 7803"
After analysis, because tomcat is not configured by me, I only maintain it, so that I cannot fully master the configuration essence of the installer.