In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "how to install Tomcat on Linux server". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Install Tomcat
Tomcat supports servlet and jsp as a web server, but centos does not support yum installation at present. Before using Tomcat, make sure that you have installed and configured jdk and that the version of jdk matches tomcat
1. Download the installation package (http://tomcat.apache.org/download-70.cgi) from the Tomcat official website and decompress it directly to use it.
[root@localhost wj] # tar-xvf tomcat.tar / / decompress directly
[root@localhost wj] # ls
1.c 1.c ~ apache-tomcat-9.0.10 tomcat.tar
[root@localhost wj] #
2. Enter the bin directory of Apache and execute startup.sh to start Apache.
[root@localhost apache-tomcat-9.0.10] # cd / wj/apache-tomcat-9.0.10//bin/
[root@localhost bin] #. / startup.sh
Using CATALINA_BASE: / wj/apache-tomcat-9.0.10
Using CATALINA_HOME: / wj/apache-tomcat-9.0.10
Using CATALINA_TMPDIR: / wj/apache-tomcat-9.0.10/temp
Using JRE_HOME: / usr
Using CLASSPATH: / wj/apache-tomcat-9.0.10/bin/bootstrap.jar:/wj/apache-tomcat-9.0.10/bin/tomcat-juli.jar
Tomcat started.
3. Modify the firewall configuration. Tomcat uses port 8080 by default. You need to modify the firewall to enable the support for port 8080.
1) enter the command "setup" in the terminal, select "Firewall" in the pop-up box, and then select "Custom"
2) use the spacebar to select "https" and "http", and then select "forward"
3) Select "add"
4) add port 8080, protocol tcp, and then determine
5) go back to the original interface and "OK"
6) restart the firewall
[root@localhost ~] # service iptables restart
Iptables: set chain to policy ACCEPT:filter nat [OK]
Iptables: clear firewall rules: [OK]
Iptables: uninstalling module: [OK]
Iptables: apply firewall rules: [OK]
[root@localhost ~] #
7) restart apache
[root@localhost ~] # service httpd restart
Stop httpd: [OK]
Starting httpd:httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[OK]
[root@localhost ~] #
4. Test. Type https://127.0.0.1 8080 in the browser and see the following result
A Linux learning platform has been made, and a prototype has come out at present, which you can refer to and use.
Link: https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ password: n7bk
This is the end of "how to install Tomcat on Linux Server". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.