Linux Series: Advanced installation of tomcat

Ideas: The author is on the Windows download from the official website of Apache tomcat, tomcat after the file into my ftp site, download the file tomcat in Linux ftp site visit, the tomcat on my own installation directory and configuration files / etc / profile configuration environment variables and the PATH environment variable on the tomcat, re-execute the configuration file after the configuration, after running tomcat comes startup.sh script, visit the URL in your browser to http: // Linux's ip: 8080 .

1. Download tomcat

Download tomcat and passed on Linux there are not very understanding, see https://www.cnblogs.com/zxp/p/11590624.html.

2. Configure Environment Variables

This step has been the premise that tomcat installation package on Linux.

Created in the configuration file / etc / profile in the environment variable TOMCAT_HOME, after configuring the PATH, the purpose of shell scripts can be executed in the bin directory tomcat directly in any directory.

3. Start tomcat

Startup.sh can be entered directly in any directory, you can start tomcat, the tomcat because the path of the executable file is configured in the PATH environment variable.

4. Verify that the configuration is successful

The browser to http: // localhost: 8080, if the following figure appears to show that the environment variable configuration was successful

 

Guess you like

Origin www.cnblogs.com/z-x-p/p/11599653.html