& Nbsp; customized Tomcat instances can be implemented in Linux. If multiple developers need to share the installed tomcat, but they need their own unique instances, it is very useful. To achieve this, set CATALINA_BASE.exportCATALINA_BASE $ HOME/tomcat if the environment does not exist.
You can customize Tomcat instances in Linux. If multiple developers need to share the installed tomcat, but they need their own unique instances, it is very useful. To achieve this, you need to set CATALINA_BASE.
Export CATALINA_BASE = $ HOME/tomcat
If the environment does not exist, CATALINA_BASE is automatically set as CATALINA_HOME.
Below, you need to create a Tomcat directory in the main directory and create or copy a specific directory, as shown below:
Cd $ HOME
Md tomcat
Cd tomcat
Cp $ CATALINA_HOME/conf.
Md logs
Md webapps
Md work
Md temp
If you want to copy the contents of the tomcat webapps directory, you can copy them to the new webapps directory.
Modify the conf/server. xml file and replace the following ports to avoid conflict. If you configure Tomcat as the listening port 8009 of Apache, you can comment this element in the server. xml file to disable this connector.
Other ports that may need to be modified:
8080 default connection port
8443 SSL connection port
8009 listener port of Apache
8005 port used to stop Tomcat
After modification, you can use the common startup. sh and shutdown. sh scripts in the CATALINA_HOME/bin directory to start and stop Tomcat.
At this time, because the file permission is set for your users, do not use tomcat users.