Linux system installation tomcat7

If you have not installed JDK on Linux, you can refer to the blog post https://mp.csdn.net/postedit/80181422

1. Download tomcat7 for Linux and download it from the official website

https://tomcat.apache.org/download-70.cgi


2. Make sure the path you want to put tomcat on Linux, mine is /usr/tomcat, you can mkdir tomcat in the /usr directory
3. Upload the local tomcat file to Linux
To upload or download, you need to use the rz and sz commands. If these two command tools are not available on linux, you need to install them first. It can be installed using yum. Run the command yum install lrzsz.
4. After the installation is complete, you can use the rz command to upload local files to the linux platform. Run the rz command, and a dialog box for selecting a file will pop up.

5. Select the path of the local file, select the file, then click the Add button, and then click OK to upload


6. Upload complete

7. Unzip
tar -zxvf apache-tomcat-7.0.86.tar.gz
There will be an additional folder apache-tomcat-7.0.86 in the decompression directory
8. Set environment variables
Open the profile file: vi /etc/profile
Then press i to enter edit mode and add the following environment variable configuration at the end of the file:
CATALINA_HOME=/usr/tomcat/apache-tomcat-7.0.86
export CATALINA_HOME  
Then ESC to exit edit mode, then enter: wq save and exit
9. Make environment variables take effect immediately
Enter the command: source /etc/profile
10. Start tomcat
In the apache-tomcat-7.0.86/bin directory, execute sh ./startup.sh to start tomcat
11. Enter http://IP:8080 in the address bar (if it is a cloud server, there are corresponding firewall setting rules, just open port 8080)

12. The installation is successful


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325472122&siteId=291194637