Linux (CentOS7.6 version) on Ali cloud server is installed on Tomcat

1. Download Tomcat8.5 software, you can download, much better (JDK also registered little trouble)

https://tomcat.apache.org/download-80.cgi

2. file upload, direct copy paste archive to SecureFx just fine.

3. In operation SecureCRT:

New store tomcat folder: mkdir -p / data0 / tomcat

4. file into the tomcat folder: cd / data0 / tomcat /

5. The tomcat extracting archive: tar -zxvf apache-tomcat-8.5.53.tar.gz

6. Remove the compressed tomcat: rm -rf apache-tomcat-8.5.53.tar.gz

7. Modify the default port configuration

7.1 access to the folder: cd /data0/tomcat/apache-tomcat-8.5.53/conf/

7.2 modify the file:. Vi server.xml (to modify the default port 8080 into their own ports, such as 7171 like this, just change)

Edit 7.3 x save and exit:: x then Enter

The next steps may be omitted

8. Start, off:

8.1 access to the folder: cd /data0/tomcat/apache-tomcat-8.5.53/bin/

8.2 ./startup.sh start

8.3 ./shutdown.sh Close

9. View the boot log:

9.1 access to the folder: cd /data0/tomcat/apache-tomcat-8.5.53/logs/

9.2 tail -f catalina.out

This is the next step I started to ignore, victims of their own to engage in a long time (very uncomfortable), I actually forgot to configure a port on Ali cloud server, other people do not know I will not have this situation.

In networking and security group in the security group configuration in the configuration, then click on the configuration rules , and finally click on the upper right to add a security group rules

Like this with a child (just to give you demo it, I do not have this port is equipped with a black let malicious people supposed to do?)

Finally, you can access a tomcat on Ali cloud cloud server

 

Published 163 original articles · won praise 92 · views 10000 +

Guess you like

Origin blog.csdn.net/weixin_42995083/article/details/105409707