Unzip Tomcat 7 and ubuntuat7 in Ubuntu
1. Download the compressed package
Here, we use the Ubuntu Wget tool to download the tomcat core package.
The wget parameter is the URL address of the compressed package.
wget http://apache.claz.org/tomcat/tomcat-8/v8.0.21/bin/apache-tomcat-7.0.59.tar.gz
After the scripts are executed, an apache-atat-7.0.59.tar.gz compressed package is generated.
2. decompress the compressed package
Run the following command in the path of the apache-tomcat-7.0.59.tar.gz file:
tar xzvf apache-tomcat-7.0.59.tar.gz
3. Configure Environment Variables
Use vim or notepad to open/etc/profile and add the following content to the file:
CATALINA_HOME=/home/tangyubin/programFiles/apache-tomcat-7.0.59export PATH=$CATALINA/bin:$PATH
Make/etc/profile take effect
source /etc/profile
4. start tomcat
Switch to the tomcat decompressed folder and go to the./apache-tomcat-7.0.59/bin path. Run the following command:
./startup.sh
5. Test
Open your browser and enter the following in the address bar:
http://localhost:8080/
If you can open the home page of tomcat, the installation is successful.