Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install tomcat version 9.0 under Centos6.5

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to install tomcat version 9.0 under Centos 6.5". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian slowly and deeply to study and learn "how to install tomcat version 9.0 under Centos 6.5" together!

2. How to install tomcat version 9.0

2.1 Download the apache-tomcat-9.0.0.M13.tar file

2.2 Extract the file to/tomcat directory:

tar -zxvf apache-tomcat-9.0.0.M13.tar /tomcat

2.3 Go to bin folder of unzipped directory and run command./ startup.sh

A prompt like this will pop up automatically:

Using CATALINA_BASE: /tomcat/apache-tomcat-9.0.0.M13

Using CATALINA_HOME: /tomcat/apache-tomcat-9.0.0.M13

Using CATALINA_TMPDIR: /tomcat/apache-tomcat-9.0.0.M13/temp

Using JRE_HOME: /usr

Using CLASSPATH: /tomcat/apache-tomcat-9.0.0.M13/bin/bootstrap.jar:/tomcat/apache-tomcat-9.0.0.M13/bin/tomcat-juli.jar

Tomcat started.

2.4 Add users after installing tomcat:

Edit..\ conf\tomcat-users.xml file

Add the following lines to the paragraph:

2.5 Discontinued service: ./ shutdown.sh

2.6 Modify tomcat default port:

Enter./ conf/server.xml file, which will

port="8080" modified to port="80"

2.7 Log in tomcat

http://127.0.0.1:80 (default port 80 can be omitted, if it is other ports must be added)

2.8 If a 403 error occurs after logging into tomcat and selecting host manager, add the local IP address to the following file:

/tomcat/apache-tomcat-9.0.0.M13/webapps/manager/META-INF/context.xml

File before modification:

Revised file:

Thank you for reading, the above is "how to install tomcat version 9.0 under Centos 6.5" content, after the study of this article, I believe that everyone on Centos 6.5 how to install tomcat version 9.0 this problem has a deeper experience, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report