tomcat单机多实例部署
1.tomcat单机多实例配置
以单实例为基础
https://www.cnblogs.com/haoee/p/13395551.html
wget https://repo.huaweicloud.com/apache/tomcat/tomcat-8/v8.5.70/bin/apache-tomcat-8.5.70.tar.gz tar -xvf apache-tomcat-8.5.70.tar.gz -C /usr/local
创建多实例目录:
mkdir -p /usr/local/{tomcat1,tomcat2,tomcat3}
在每个tomcat实例目录中复制conf,webapps,temp,work,logs
mv conf webapps logs temp work -t /usr/local/tomcat1 mv conf webapps logs temp work -t /usr/local/tomcat2 mv conf webapps logs temp work -t /usr/local/tomcat3
修改server.yml端口
vim /usr/local/tomcat1/conf/server.yml
Server Port (默认8005)
Connector Port (默认8080)
AJP Port (默认8009)