In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to install tomcat under centos. It is very detailed and has a certain reference value. Friends who are interested must finish it!
1. Download tomcat
[admin@ticent app] $wget http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.0.44/bin/apache-tomcat-8.0.44.tar.gz
-- 2017-06-04 13 0614 33-http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.0.44/bin/apache-tomcat-8.0.44.tar.gz
Parsing host mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn)... 101.6.6.177, 2402:f000:1:416:101:6:6:178
Connecting mirrors.tuna.tsinghua.edu.cn (mirrors.tuna.tsinghua.edu.cn) | 101.6.6.177 |: 80. Connected.
A HTTP request has been issued and is waiting for a response. 200 OK
Length: 9334254 (8.9m) [application/octet-stream]
Saving to: "apache-tomcat-8.0.44.tar.gz"
9334254 430KB/s takes 17s
2017-06-04 13:06:49 (541 KB/s)-saved "apache-tomcat-8.0.44.tar.gz" [9334254ax 9334254])
two。 Decompression
[admin@ticent app] $tar-zxf apache-tomcat-8.0.44.tar.gz
3. Start
[admin@ticent bin] $. / startup.sh
Using CATALINA_BASE: / home/admin/app/apache-tomcat-8.0.44
Using CATALINA_HOME: / home/admin/app/apache-tomcat-8.0.44
Using CATALINA_TMPDIR: / home/admin/app/apache-tomcat-8.0.44/temp
Using JRE_HOME: / usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.x86_64/jre
Using CLASSPATH: / home/admin/app/apache-tomcat-8.0.44/bin/bootstrap.jar:/home/admin/app/apache-tomcat-8.0.44/bin/tomcat-juli.jar
Tomcat started.
4. Verify that it is started
[admin@ticent bin] $wget http://127.0.0.1:8080/
-- 2017-06-04 13 11 22 muri-http://127.0.0.1:8080/
Connecting 127.0.0.1 VRO 8080... Connected.
A HTTP request has been issued and is waiting for a response. 200 OK
Length: [text/html] not specified
Saving to: "index.html"
5. Clear the default rules of iptables built-in firewall in CentOS
[root@ticent java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.x86_64] # iptables-F
6. Access from a remote machine
Http://192.168.128.128:8080/
The above is all the contents of the article "how to install tomcat under centos". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.