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

Steps to install tomcat9 under Linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly introduces "steps to install tomcat9 under Linux", in daily operation, I believe many people have doubts about the steps to install tomcat9 under Linux, Xiaobian consulted all kinds of information, sorted out simple and easy to use operation methods, hope to answer "steps to install tomcat9 under Linux" doubts help! Next, please follow the small series to learn together!

I. Download tomcat91.1 official website Download

  Download the tar.gz file from Tomcat's official website and upload it to the Linux server.

1.2 wget download

  The address may not be available and needs to be re-located.

wget http://mirrors.cnnic.cn/apache/tomcat/tomcat-9/v9.0.0.M9/bin/apache-tomcat-9.0.0.M9.tar.gz II. Decompression

After extracting with tar command, apache-tomcat-9.0.0.M9 directory will be generated;

Move apache-tomcat-9.0.0.M9 to/usr/local

tar -zxvf apache-tomcat-9.0.27.tar.gzmv apache-tomcat-9.0.27 /usr/local Third, Tomcat service related

1. Enter the bin folder of the decompression directory and run the command./ startup.sh

./ startup.sh

The following is automatically printed:

Using CATALINA_BASE: /usr/local/apache-tomcat-9.0.27Using CATALINA_HOME: /usr/local/apache-tomcat-9.0.27Using CATALINA_TMPDIR: /usr/local/apache-tomcat-9.0.27/tempUsing JRE_HOME: /usr/local/jdk1.8/jreUsing CLASSPATH: /usr/local/apache-tomcat-9.0.27/bin/bootstrap.jar:/usr/local/apache-tomcat-9.0.27/bin/tomcat-juli.jar

2. Verify whether it is successfully opened

  Enter http://127.0.0.1:8080 in the browser, or use the command w3m http://127.0.0.1:8080 (if w3m command is not available, please use apt-get or yum installation, please Baidu)

w3m http://127.0.0.1:8080

3. Close the service

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

./ shutdowm.sh

The following is automatically printed:

Using CATALINA_BASE: /usr/local/apache-tomcat-9.0.27Using CATALINA_HOME: /usr/local/apache-tomcat-9.0.27Using CATALINA_TMPDIR: /usr/local/apache-tomcat-9.0.27/tempUsing JRE_HOME: /usr/local/jdk1.8/jreUsing CLASSPATH: /usr/local/apache-tomcat-9.0.27/bin/bootstrap.jar:/usr/local/apache-tomcat-9.0.27/bin/tomcat-juli.jar

View Tomcat version

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

./ version.sh

The following is automatically printed:

Using CATALINA_BASE: /usr/local/apache-tomcat-9.0.27Using CATALINA_HOME: /usr/local/apache-tomcat-9.0.27Using CATALINA_TMPDIR: /usr/local/apache-tomcat-9.0.27/tempUsing JRE_HOME: /usr/local/jdk1.8/jreUsing CLASSPATH: /usr/local/apache-tomcat-9.0.27/bin/bootstrap.jar:/usr/local/apache-tomcat-9.0.27/bin/tomcat-juli.jarServer version: Apache Tomcat/9.0.27Server built: Oct 7 2019 09:57:22 UTCServer number: 9.0.27.0OS Name: LinuxOS Version: 3.10.0-957.21.3.el7.x86_64Architecture: amd64JVM Version: 1.8.0_131-b11JVM Vendor: Oracle Corporation At this point, the study of "Steps to Install Tomcat9 under Linux" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

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

Internet Technology

Wechat

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

12
Report