linux server installation tomcat
ready:
Download a tomcat, the official website connection: http://tomcat.apache.org/ version choose the right
You must install before installing Java jdk tomcat
Start
Use Xftp downloaded tomcat will be uploaded to /usr/tomcat/
the next, and extract
tar -xzvf apache-tomcat-9.0.26.tar.gz
Unpacking completes
And modify folders
mv apache-tomcat-9.0.26 apache-tomcat-9.0.26-80
Start being given:
the reason:
Because the calls start tomcat tomcat installation file startup.bat, and it calls catalina.bat is called setclasspath.bat. Hence the need to manually declare the beginning of the environment variable in setclasspath.bat.
solve:
Opened with vim tomcat bin directory of setclasspath.sh , add two environment variables JAVA_HOME and JRE_HOME , two environment variables path for the java JDK installation path.
vim setclasspath.sh
New java environment variables
Save and exit
Continue to start
./startup.sh
success