In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
RHEL7 how to deploy TOMCAT8, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
Tomcat is a core project of the Jakarta project of the Apache Software Foundation (Apache Software Foundation), which is jointly developed by Apache, Sun and other companies and individuals. With the participation and support of Sun, Tomcat is deeply loved by Java lovers and recognized by some software developers because of its advanced technology, stable performance and free, so it has become a popular Web application server.
System: redhat7.0
Tomcat version: apache-tomcat 8.0.50
Ip:172.16.1.10
Jdk version: 1.7
To deploy tomcat services, you first need to deploy jdk
Upload jdk package
Extract and configure
[root@localhost local] # tar xf jdk-7u79-linux-x64.tar.gz [root@localhost local] # ln-s / usr/local/jdk1.7.0_79/ / usr/local/jdk
Add the following configuration to / etc/profile
test
[root@localhost local] # source / etc/profile [root@localhost local] # java-versionjava version "1.7.0,79" Java (TM) SE Runtime Environment (build 1.7.0_79-b15) Java HotSpot (TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
In this way, the jdk deployment is complete, and then the tomcat is deployed.
Upload tomcat package
Create a storage directory
[root@localhost ~] # mkdir / root/test [root@localhost ~] # cd / root/test/
Decompress tomcat
[root@localhost test] # unzip apache-tomcat-8.0.50.zip Archive: apache-tomcat-8.0.50.zip creating: apache-tomcat-8.0.50/ creating: apache-tomcat-8.0.50/bin/ inflating: apache-tomcat-8.0.50/bin/bootstrap.jar inflating: apache-tomcat-8.0.50/bin/catalina-tasks.xml inflating: apache-tomcat-8.0.50/bin/catalina.bat inflating: Apache-tomcat-8.0.50/bin/catalina.sh.
Set permissions and start the service
[root@localhost test] # cd apache-tomcat-8.0.50/bin/ [root@localhost bin] # ll total consumption 832m / r / r / m / r 1 root root 34782 October 16 2018 bootstrap.jar-rw-r--r--. 1 root root 15928 March 14 2019 catalina.bat-rw-r--r--. 1 root root 23256 March 14 2019 catalina.sh-rw-r--r--. 1 root root 1686 October 16 2018 catalina-tasks.xml-rw-r--r--. 1 root root 25145 October 16 2018 commons-daemon.jar-rw-r--r--. 1 root root 207125 October 16 2018 commons-daemon-native.tar.gz-rw-r--r--. 1 root root 2040 October 16 2018 configtest.bat-rw-r--r--. 1 root root 1922 October 16 2018 configtest.sh-rw-r--r--. 1 root root 8509 October 16 2018 daemon.sh-rw-r--r--. 1 root root 2091 October 16 2018 digest.bat-rw-r--r--. 1 root root October 16 2018 digest.sh-rw-r--r--. 1 root root 3574 October 16 2018 setclasspath.bat-rw-r--r--. 1 root root 3680 October 16 2018 setclasspath.sh-rw-r--r--. 1 root root October 2020 16 2018 shutdown.bat-rw-r--r--. 1 root root 1902 October 16 2018 shutdown.sh-rw-r--r--. 1 root root 2022 October 16 2018 startup.bat-rw-r--r--. 1 root root 1904 October 16 2018 startup.sh-rw-r--r--. 1 root root 49037 October 16 2018 tomcat-juli.jar-rw-r--r--. 1 root root 405109 October 16 2018 tomcat-native.tar.gz-rw-r--r--. 1 root root 4586 October 16 2018 tool-wrapper.bat-rw-r--r--. 1 root root 5495 October 16 2018 tool-wrapper.sh-rw-r--r--. 1 root root 0 October 16 2018 velocity.log-rw-r--r--. 1 root root 2026 October 16 2018 version.bat-rw-r--r--. 1 root root October 16 2018 version.sh [root@localhost bin] # chmod 2018 * [root@localhost bin] # sh startup.sh Using CATALINA_BASE: / root/test/apache-tomcat-8.0.50Using CATALINA_HOME: / root/test/apache-tomcat-8.0.50Using CATALINA_TMPDIR: / root/test/apache-tomcat-8.0.50/tempUsing JRE_HOME: / usr/local/jdkUsing CLASSPATH: / root/test/apache -tomcat-8.0.50/bin/bootstrap.jar:/root/test/apache-tomcat-8.0.50/bin/tomcat-juli.jarTomcat started.
Turn off the firewall
[root@localhost conf] # systemctl stop firewalld
test
So the TOMCAT deployment is complete!
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.