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.7 upgrades the Tomcat version with soft links

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

Share

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

1. Install JDK:

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

# java-version

2. Decompress Tomcat 8.5:

# tar-xf apache-tomcat-8.5.50.tar.gz-C / usr/local

# cd / usr/local

# ln-sv apache-tomcat-8.5.50/ tomcat

# ll | grep tomcat

Remarks: option description

(1)-s: soft link

(2)-v: displays the name of each linked file

3. Configure Tomcat environment variables:

# vim / etc/profile.d/tomcat.sh

Export CATALINA_HOME=/usr/local/tomcat

Export PATH=$CATALINA_HOME/bin:$PATH

Export JAVA_HOME=/usr/java/latest

Export JRE_HOME=$JAVA_HOME/jre

#. / etc/profile.d/tomcat.sh

# echo $CATALINA_HOME

# catalina.sh version

4. Decompress Tomcat 9.0:

# tar-xf apache-tomcat-9.0.30.tar.gz-C / usr/local

# cd / usr/local

Modify the soft link:

# ln-snf apache-tomcat-9.0.30/ tomcat

# ll | grep tomcat

Remarks: option description

(1)-s: soft link

(2)-n: if the link name is a symbolic link to a directory, it is treated as a normal file

(3)-f: delete the existing target file

5. View Tomcat environment variables and version information:

# echo $CATALINA_HOME

# version.sh

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