Install tomcat middleware in linux and linuxtomcat Middleware
1. Check whether jdk is installed and the required environment variables are configured. If jdk is not installed, install jdk and configure the correct environment variables.
Check whether jdk and environment variable configuration are installed: # java-version.
2. If the preceding installation and configuration are correct, you can install and configure the tomcat middleware service.
3, Apache Tomcat official website download http://tomcat.apache.org/download-70.cgi
4. Use ftpto upload the downloaded tar.gz package to the target directory.
5. log on to the terminal and access the cd file to the uploaded directory, as shown in the following figure:
Command Format: tar-zxvf compressed file name .tar.gz
Tar-zxvf apache-tomcat-7.0.64.tar.gz
After decompression, start the service.
Service started successfully
Test whether the service is correctly started:
Enter: http://182.254.xxx.xxx: 8080/in the browser/
If the following page is displayed, the service starts normally.
(. Compression command: Command Format: tar-zcvf compressed file name .tar.gz compressed file name)