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

The method of installing Tomcat7 in centos7

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "the method of installing Tomcat7 in centos7". In the daily operation, I believe that many people have doubts about the method of installing Tomcat7 in centos7. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "the method of installing Tomcat7 in centos7". Next, please follow the editor to study!

I. Environment

Centos7 linux

Apache-tomcat

Second, install 1. Upload the installation package

Upload to: / usr/local/src/tomcats (other paths are fine)

two。 Extract the installation package 3. Rename the installation package

(you don't have to rename it, but it's easy to distinguish. )

[root@localhost tomcats] # mv apache-tomcat-7.0.92 tomcat7-8080

4. Start tomcat

Go to the bin directory of tomcat first

[root@localhost tomcats] # cd tomcat7-8080/bin

After changing the path, there is a startup.sh and then use this to start the tomcat.

The first startup: sh startup.sh

The second startup:. / startup.sh

5. Turn on tomcat's firewall

L View firewall status: systemctl status firewalld

L View all open ports: firewall-cmd-- zone=public-- list-ports

L Open port 8080: firewall-cmd-zone=public-add-port=8080/tcp-permanent

L reload: firewall-cmd-- reload

Note: the test environment can also turn off the firewall directly

[root@localhost bin] # systemctl stop firewalld

6. Whether the test was successful

Browser access: the following interface indicates that the installation is successful.

At this point, the study on "the method of installing Tomcat7 in centos7" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report