This article is based on CentOS 64-bit
1. First download Tomcat7.0 (apache-tomcat-7.0.64.tar.gz)
Download http://tomcat.apache.org/download-70.cgi from official website
2. Copy the apache-tomcat-7.0.64.tar.gz to the/usr/lib/ Apache-tomcat /directory below, if there is no folder, create the folder, command:
mkdir Apache-tomcat
sudo tar xvf apache-tomcat-7.0.64.tar.gz //Unzip files
3. When the decompression is successful, we go directly to the Tomcat bin directory.
Enter./startup.sh to start Tomcat, and if Tomcat started is displayed, it indicates a successful boot.
4. Enter the address, assuming successful access to Tomcat's default interface indicates success.
The default port for Tomcat is 8080
5.Tomcat is located in the directory/usr/lib/apache-tomcat/
Open the Tomcat configuration file
sudo nano/usr/local/apache-tomcat/conf/server.xml
Press 8080 to quickly retrieve the Tomcat profile after opening it
Modify the port, press I, change 8080 to 80
In order to prevent garbled in the back, we add uriencoding= "UTF-8" by the way,
Restart Tomcat
Install TOMCAT7 under Linux