Can linux run two tomcats?

WBOY
WBOYOriginal
2022-07-14 14:30:453537browse

Linux can run two tomcats. Running method: 1. Use the "vim /etc/profile" command to write the environment variables, and use "source /etc/profile" to make the configuration effective; 2. Modify the "apache-tomcat-10.0.12/conf" directory server.xml" file; 3. Modify the "startup.sh" and "shutdown.sh" files in the two "tomcat/bin" directories.

Can linux run two tomcats?

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

Linux can run two tomcats

How to run multiple tomcats at the same time on Linux

Download two tomcats and unzip them and start configuring tomcat Environment variables

1. Modify environment variables

Use the vim /etc/profile command to start writing environment variables as shown in the figure:

Can linux run two tomcats? Then make the configuration take effect

source /etc/profile

2. Modify the configuration file

Modify the apache-tomcat-10.0.12/conf directory In the server.xml file under, both tomcat files must be modified to 8001/8002, 80/81
The two pictures below are the same server file

For the first tomcat, change the Change one port to 8001 and the second port to 80

Can linux run two tomcats?

Can linux run two tomcats?

Then modify the twotomcat/bin The startup.sh and shutdown.sh files in the directory. As shown in the figure

For the first tomcat, change the number to 1

Can linux run two tomcats?

Then you can start two tomcats at the same time

Recommended learning: Linux video tutorial

The above is the detailed content of Can linux run two tomcats?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn