Ali about installing Tomcat on a cloud server

About installing Tomcat on Ali cloud "lightweight application server," cloud server ECS Similarly,

First, download Tomcat

Tomcat Download: http://tomcat.apache.org/

Second, uploaded to the server

Here Insert Picture Description
Upload directory remember to duck
, of course, is not recommended to use the root user

Third, install java

Because Tomcat is using java language, so the need java environment, not too much description here

Fourth, unzip Tomcat

In your upload directory is there such a thing
Here Insert Picture Description
using the tar command to extract the package on the chart,
behind the version number is 8.5.49, so there may be a different situation, I am 8.5.49, for example,
the command: tar -zxvf apache-tomcat-8.5.49.tar.gz
Further, the connection may be a soft
command ln -s apache-tomcat-8.5.49 tomcat

Fifth, concerning Tomcat environment variables

On environmental variables, there are three files that can be used specially configured environment variables, here I use the "/ etc / profile" linux environment this file
using the vi editor in linux configure
command: vi / etc / profile
Here Insert Picture Description
to find this line, the next line of the line write Tomcat environment
such as:

export CATALINA_HOME=/(你解压的目录,说让你记得的)/tomcat
export PATH=$PATH:$CATALINA_HOME/bin

Write this was not enough, this environment to restart
the command: source / etc / profile

Sixth, the firewall related to Ali cloud

In Here Insert Picture Description
this console interface, click on "Firewall"
on the right there are some of you this server port information, click on "Add Rule", then Here Insert Picture Description
the cloud server security group policy ECS is such a truth
Click OK, and then restart the server the best,

Seven, start Tomcat

Command: startup.sh
this command in the bin directory of Tomcat,
Here Insert Picture Description
see the last of that Tomcat started, it shows good start, you can visit
Furthermore, there is a java command called jps, you can view the java process, you will be a man named "Bootstrap" process

Eight, visit

Tomcat is the default port 8080, so a direct http: // (IP address): 8080, you can access the
Figure: Here Insert Picture Description
people also said, "If you see that your Tomcat installation was successful,"
Happy New Year duck, the original is not easy, if Chen sigh

Published an original article · won praise 0 · Views 71

Guess you like

Origin blog.csdn.net/weixin_44776246/article/details/104083637