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

Basic deployment and Optimization of tomcat--

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Main points of content

1. Introduction to Tomcat:

2. Tomcat core components:

3. Tomcat request processing process:

4. Steps to deploy Tomcat:

Fifth, optimize Tomcat:

1. Introduction to Tomcat:

1. Free, open source Web application server

2. Apache Software Foundation-a core project in the Jakarta project.

3. Jointly developed by Apache, Sun and some companies and individuals

4. Web application server which is popular at present.

2. Tomcat core components:

3. Tomcat request processing process:

4. Steps to deploy Tomcat:

The environment is prepared as follows:

1. Operating system: CentOS7

2. IP address: 192.168.220.131

3. Main software:

Apache-tomcat-9.0.16.tar

Jdk-8u201-linux-x64.rpm

Step 1: configure the JAVA environment

(1) install jdk

Rpm-ivh jdk-8u201-linux-x64.rpm

The location after installation is: / usr/java/

(2) configure environment variables

1. Vim / etc/profile, add the following code at the end of the file:

Export JAVA_HOME=/usr/java/jdk1.8.0_201-amd64export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jarexport PATH=$JAVA_HOME/bin:$PATH

2. Make the environment variable effective:

Source / etc/profile

(3) use the java-version command to check whether the JAVA version is the same as previously installed.

At this point, the JAVA environment has been configured.

Step 2: install and start Tomcat

(1) extract the package to the specified path, / usr/local/

Tar zxvf apache-tomcat-9.0.16.tar.gz-C / usr/local/

(2) after decompression, generate an apache-tomcat-9.0.16 folder and rename it to Tomcat.

Mv apache-tomcat-9.0.16/ tomcat

1. In the / tomcat/bin directory, there are many control scripts:

2. To facilitate the opening and closing of tomcat, we can create a soft connection:

Ln-s / usr/local/tomcat/bin/startup.sh / usr/bin/ln-s / usr/local/tomcat/bin/shutdown.sh / usr/bin/

(3) turn off the firewall and start tomcat

1. Open tomcat with startup.sh script

2. You can enter the ip address on the browser and visit the official website to see if it is normal.

Fifth, optimize Tomcat:

If we want tomcat to start faster, we just need to change the threshold value.

Location: / usr/java/jdk1.8.0_201-amd64/jre/lib/security/java.security

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