I have never been allocated, are using free installation. But today the customer has tomcat from other companies, and can only
start one. But it crashes at startup, and I can't see the log under tomcat. After querying the startup log, it ran to another original tomcat, and the report was a port conflict. But the port has been changed. After querying, it is found that the environment variable is configured to point to the original tomcat directory.
Solution:
Method 1: Configure another tomcat environment variable.
1. Configure CATALINA_BASE2 and CATALINA_HOME2 to point to the tomcat directory, as follows:
2. Open the catalina.bat and startup.bat files, replace all CATALINA_BASE with CATALINA_BASE2, and replace all CATALINA_HOME with CATALINA_HOME2. Just restart.
Note: It is said to replace all CATALINA_BASE and CATALINA_HOME in all bats under bin, the blogger thinks it is unnecessary
Method 2: Only do step 2 of method 1, omit step 1