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

Centos 7 install tomcat

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

Share

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

I. introduction

Tomcat server is a Web application server, which has the functions of developing and debugging JSP (java service page) programs, responding to access requests of HTML (an application under the standard general markup language) pages, and running Servlet (Server Applet application service).

2. Install jdk (software development kit for Java language)

1. Download jdk

Https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

After logging in and registering, check Accept License Agreement and select jdk-8u191-linux-x64.rpm here. First download to the computer, and then upload the downloaded jdk-8u191-linux-x64.rpm to the server using xfto. (usage of xshell and xftp

Https://www.51anidea.com/forum.php?mod=viewthread&tid=45)

2. Install jdk

# rpm-ivh jdk-8u221-linux-x64.rpm

3. Verification

(1) output Java information:

# java-version

Output the following information:

. Indicates that the installation was successful.

Third, install tomcat

1. Download the source package

Open the tomcat official website: https://tomcat.apache.org/download-90.cgi

After obtaining the download address, use wget to download # wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-9/v9.0.24/bin/apache-tomcat-9.0.24.tar.gz 2, install Tomcat # tar-zxvf apache-tomcat-9.0.24.tar.gz 3, launch Tomcat # cd apache-tomcat-9.0.24/bin/ #. / startup.sh 4, Firewall release port 8080 # firewall-cmd-- permanent-- zone=public-- add-port=8080/tcp # firewall-cmd-- reload 5, verify and open the browser Enter the ip address of the http:// server: 8080 in the address bar, and the following page appears:! [] (https://s1.51cto.com/images/blog/201909/01/c94b21bced6bc61b579637fb631a8ff2.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)

Indicates that the installation was successful.

IV. Stop tomcat

# cd apache-tomcat-9.0.24/bin/

#. / shutdown.sh

Check port # netstat-nlp | grep 8080 to determine whether the service is turned off.

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