System environment: CentOS Linux 7 x64
Current User: Normal user
Installing the Tomcat version: apache-tomcat-9.0.8.tar.gz
: https://tomcat.apache.org/download-90.cgi
1. Drag the Tomcat 9 that you downloaded from the physical machine to the virtual machine. (can also be downloaded directly from your own browser)
Because you are currently a normal user, you can only drag to the directory under the current user, or you may not have sufficient permissions.
2. Unzip. There are two ways: one is directly extracted by the self-brought program, and one is extracted by the command line method. (This is extracted using the own program)
Double-click to open the package, and in the upper-right corner Extract (extract), click Extract (extract) in the upper-left corner.
2. Right-click the open in Terminal (open terminal) directly in the current directory and move to the appropriate directory. (Need to get root privileges)
mkdir/app/tomcatmv Apache-tomcat-9.0. 8 /app/tomcat
3. Enter the Tomcat execution directory. (Need to get root privileges)
cd/app/tomcat/apache-tomcat-9.0. 8/bin
4. Start Tomcat and detect if the boot was successful. (Need to get root privileges)
To start Tomcat:
./startup.sh
To detect whether the startup was successful:
Ps-ef | grep Tomcat
, the startup succeeds.
CentOS Linux-Record Contos 7 build Tomcat 9 environment + Tomcat self-boot