Linux start multiple tomcat servers

First of all, you have to transfer the compressed package to a folder in the Linux system, and then unzip it. Needless to say, the unzip command is needless to say, you can Baidu to various suffix unzip commands.
Remember the location after decompression, mine is the location shown below.
Insert picture description here
Find this folder in xshell and locate the bin directory, then execute ./startup.sh to
start the server.
If you want to start two servers, you must modify the port.
Insert picture description here
Open the server.xml in Notepad and modify the following content.

1、修改连接端口
 
    <Server port="8005" shutdown="SHUTDOWN">   --8005修改为9005
 
2、修改访问端口号
 
    <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> --8080端口修改为8081端口
 
3、修改AJP连接端口
 
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />  --8009修改为9009

Guess you like

Origin blog.csdn.net/qq_42678668/article/details/108568780