1. System environment.
System: centos7.5 minimized version
Jdk version: jdk-19
Tomcat version: apache-tomcat-8.5.31
Redis version: redis-6.2.1
Baidu network disk extraction link: https://pan.baidu.com/s/1J8TVF3luI4-45UfPKiCq3g?pwd=narc
Extraction code: narc
2. Check whether there is a jdk version that comes with the system.
Supplement: If it is a desktop version, there will be java that comes with the system, and all files that do not end with .noarch need to be deleted.
Delete command: rpm -e --nodeps java file
3. The jdk download address.
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Baidu network disk extraction link: https://pan.baidu.com/s/1J8TVF3luI4-45UfPKiCq3g?pwd=narc
Extraction code: narc
4. Install Xftp.
There is in the network disk, after decompression, click to run Xftp-7.0.0097.exe and wait for the installation to complete
5. Upload jdk19 to the virtual machine through Xftp.
Right-click the file > click New
query ip address
Create a connection, enter the connection address and username and password
connection succeeded
Upload the jdk compressed package to the specified path (right click to create a new folder)
Enter /usr/local/jdk/ to extract jdk
6. Configure jdk environment variables.
Vi /etc/profile
export JAVA_HOME=/usr/local/jdk/jdk-19.0.1 #jdk decompressed storage path
export
CLASSPATH=.:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jar
export PATH=$PATH:${JAVA_HOME}/bin
source /etc/profile #Make the configuration take effect
Query jdk version
7. Upload the tomcat compressed package.
decompress
Switch paths and run tomcat
The Startup.sh script does not have execution permissions, give execution permissions, and then run and start again
Check whether tomcat is enabled
Turn off the firewall and set it to power off
Access tomcat service
8. Select the project for packaging.
Select the path where the war package is stored
Upload the war package to /usr/local/tomcat/apache-tomcat-8.5.31/webapps/ via Xftp
start tomcat
access on physical machine