linux server installation tomcat

linux server installation tomcat

ready:

Download a tomcat, the official website connection: http://tomcat.apache.org/ version choose the right

1569736726522

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

1569743913844

And modify folders

mv apache-tomcat-9.0.26 apache-tomcat-9.0.26-80 

1569737317230

Start being given:

1569745815884

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

1569747519582

New java environment variables

1569747475377

Save and exit

Continue to start

./startup.sh

1569747793108

success

Guess you like

Origin www.cnblogs.com/mengw/p/11608885.html