欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

tomcat单机多实例

程序员文章站 2022-05-23 17:53:31
...

1.配置jdk环境

[aaa@qq.com ~]# yum -y install jdk-8u131-linux-x64_.rpm

2.创建文件夹

[aaa@qq.com ~]# mkdir -p /opt/tomcat1
[aaa@qq.com ~]# mkdir -p /opt/tomcat2
[aaa@qq.com ~]# mkdir -p /opt/tomcat3
[aaa@qq.com ~]# cp -rf apache-tomcat-8.5.35/ /opt/tomcat3
[aaa@qq.com ~]# cp -rf apache-tomcat-8.5.35/ /opt/tomcat2
[aaa@qq.com ~]# cp -rf apache-tomcat-8.5.35/ /opt/tomcat1

3.修改配置文件

<Server port="8005" shutdown="SHUTDOWN">      
<Connector port="8080" protocol="HTTP/1.1"
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

4.启动

[aaa@qq.com bin]# pwd
/root/apache-tomcat-8.5.35/bin
[aaa@qq.com bin]# ./startup.sh

5.查看
tomcat单机多实例
tomcat单机多实例
tomcat单机多实例

相关标签: tomcat