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 and uninstall Tomcat8 in Linux

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

Share

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

This article mainly introduces the operation steps of installing and uninstalling Tomcat8 in Linux, which has a certain reference value, and interested friends can refer to it. I hope you can learn a lot after reading this article.

[Linux install Tomcat8]

Uninstall Tomcat-pause Tomcat first

# systemctl stop tomcat# yum remove tomcat

Rpm installation can be removed with yum remove tomcat

Install Apache Tomcat8 and download using open source image of Huazhong normal University of Science and Technology

# wget http://mirrors.hust.edu.cn/apache/tomcat/tomcat-8/v8.5.37/bin/apache-tomcat-8.5.37.tar.gz

Unpack the Tomcat and delete the installation package-you can set the location where you want to store it when decompressing.

# rm-rf apache-tomcat-8.5.37.tar.gz# tar-vzxf apache-tomcat-8.5.37.tar.gz

Move Tomcat to / usr/local/-and rename

# mv apache-tomcat-8.5.37 / usr/local/tomcat

Start Tomcat

# cd / usr/local/tomcat/bin#. / startup.sh

Check to see if the Tomcat service starts

# ps-ef | grep tomcat

Close Tomcat

# cd / usr/local/tomcat/bin#. / shutdown.sh

View Tomcat version

# cd / usr/local/tomcat/bin#. / version.sh

Server.xml configuration

# vim / usr/local/tomcat/conf/server.xml

Set up boot boot

Edit the rc.local file

# vim / etc/rc.d/rc.local

Add / root/apache-tomcat-8.5.37/bin/startup.sh on the last line

/ usr/local/tomcat/bin/startup.sh

Restart the server takes effect (virtual machine restart)

# reboot

Directory structure of Tomcat

Webapps directory structure

Thank you for reading this article carefully. I hope the article "how to install and uninstall Tomcat8 in Linux" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

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