After the TOMCAT installation itself provides a server, the port configuration defaults to 8080, the corresponding directory is: \TOMCAT7.0\WEBAPPS;TOMCAT 7.0 configures multiple ports, which in fact adds several servers to Tomcat and sets the corresponding directories. The following is an example of adding a port number:
1. Modify server.xml[. \tomcat 6.0\conf],
Enter the command:
Vi/data/apache-tomcat-7.0.34/conf/server.xml, go to the edit page of the Server.xml file
Create a new port number than the service above, pay attention to modify ServiceName, Engine name, appbase three places,
Of course, the port number do not forget to modify, so as not to repeat, such as:
Press ESC to exit when the configuration is complete: QW.
2. Create the appropriate deployment directory
.. \tomcat 7.0\WEBAPPS1
Copy the folders under Tomcat 7.0\webapps to the new deployment directory WEBAPPS1, modeled WebApps
3. Creating the profile directory and configuration file
Create profile directory Catalina1 specific directory reference Catalina, with Catalina Peers,
\tomcat 7.0\conf\catalina1\localhost
Host-manager.xml
Manager.xml
4. Deployment Run
Put the war in Tomcat's WebApps file directory, enter the Xshell command line CD//data/apache-tomcat-7.0.34/bin into the bin directory, enter the./starup.sh to start Tomcat.
Tomcat multi-application configuration under Linux