System Environment: Ubuntu10.10 (linux-kernel2.6.35-22) Installation version: apache-tomcat-7.0.29.tar.gz (Official Site: ApacheTomcat) Installation Steps: 1、tomctomctomctomc apache-tomcat-7.0.29.tar.gz (Official Site) 2. Unzip Tomcat unzip apache-tomcat-
System Environment:Ubuntu 10.10 (linux-kernel 2.6.35-22)
Installation version:Apache-tomcat-7.0.29.tar.gz (Official Website:APache Tomcat)
Installation steps:
1. Download Tomcat
Download apache-tomcat-7.0.29.tar.gz (official site)
2. Decompress Tomcat
Extract apache-tomcat-7.0.29.tar.gz
Tar-zxvf apache-tomcat-7.0.29.tar.gz
3. Configure Tomcat
Copy the decompressed file to the/opt directory.
Sudo cp-r apache-tomcat-7.0.29/opt
Go to the/opt/apache-tomcat-7.0.29 directory
Cd/opt/apache-tomcat-7.0.29
Linux community http://www.linuxidc.com open the Startup Script File
Sudo vi./bin/startup. sh
Add jdk and jre environment variables, as shown in figureRed rectangle area:
Medium:
JAVA_HOME and JRE_HOME are the JDK and JRE directories configured.
TOMCAT_HOME is the currentApache -- tomcat-7.0.29Directory
Save and exit.
4. start Tomcat
Sudo./bin/startup. sh
Some startup parameters are displayed at startup.
5. Verify that the configuration is successful.
Open your browser and enter the URL: http: // localhost: 8080 or http: // 127.0.0.1: 8080.
The webpage is displayed, indicating that the configuration is successful!