On Linux you can implement customized Tomcat instance.
If multiple developers need shared installation of tomcat, but they need your own unique instances are very useful. To achieve this you need to set CATALINA_BASE.exportCATALINA_BASE = $ HOME/tomcat if environment does not exist, then CATALINA_BASE will automatically be set to CATALINA_HOME. next, you need to build in the main directory Tomcat directory, and create or copy a specific directory, as follows: cd $ OMEmdtomcatcdtomcatcp $ CATALINA_HOME/con .mdlogsmdwebappsmdworkmdtemp if you want to copy the contents of the directory, tomcatwebapps can bring their copies to the new webapps directory. Modify the server.xml file conf/, replace the following ports to avoid conflict. If the Apache Tomcat configuration as a listening port 8009, then in the server.xml file, note that the element and to disable the connector. Others may need to modify ports: 8080 default connection port 8443SSL connection port 8009Apache listening port 8005 to stop Tomcat port modification is complete, you can use CATALINA_HOME/bin directory of common startup.sh and shutdown.sh scripts to start and stop Tomcat. this time due to file permission settings for your users, so do not use the tomcat user.
No comments:
Post a Comment