linux 启动2台或多台tomcat

news/2024/7/3 13:51:36 标签: tomcat, 配置, 多个

一、首先解压tomcat.tar.gz

二、需要复制一份tomcat文件夹,例:

三、其中一份可以不修改,第二份需要修改

 1、修改连接端口

    <Server port="9005" shutdown="SHUTDOWN">   -- 将8005修改为9005

    2、修改访问端口号

    <Connector port="8090" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> -- 将8080端口修改为8090端口

    3、修改AJP连接端口

    <Connector port="9009" protocol="AJP/1.3" redirectPort="8443" />  -- 将8009修改为9009
 

四、启动成功

如果想要开启多个tomcat服务,以此类推,注意端口不要重复,或被其他应用占用


http://www.niftyadmin.cn/n/776086.html

相关文章

linux 服务器java生成的图片乱码

案例&#xff1a; 服务器&#xff1a; 本地&#xff1a; 看了下图片生成的规则&#xff0c;发现图片是通过 Graphics2D生成的 其中调用了Fixedsys字体 Font font new Font("Fixedsys", Font.PLAIN, fontHeight); 但是linux的字体库中没有此字体&#xff0c;通…

IDEA-推荐几款好用的插件

1 RestfulToolkit Java WEB开发必备&#xff0c;再也不用全局搜索RequestMapping了。 2 Lombok Plugin 使用注解自动生成代码&#xff0c;码奴解放者。 3 Grep Console 高亮log不同级别日志&#xff0c;看日志的时候一目了然。 4 GsonFormat 将json串转成对象 alts 5 Ra…

start.sh: line 1: $'\r': command not found 或 start.sh: line 10: syntax error near unexpected token `

先说下我遇到这个情况的背景&#xff1a; 在windows上写了sh脚本&#xff0c;放到linux 上跑 通过:set ff 查看脚本格式 fileformatdos 如果不是unix 就通过:set ffunix 设置&#xff0c;:wq保存退出 第二个问题是我在启动jar包的最后面加了; 去掉就好了

Linux git 环境搭建

1. 安装git yum instal git 中途需要y确认 2.设置git config 属性 git config --global user.name "Your Name" git config --global user.email "emailexample.com" 3.生成ssh所需的key ssh-keygen 4.查看生成的ssh-key cat ~/.ssh/id_rsa.pub …

The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.

背景&#xff1a; 通过spring-boot-starter-data-jpa和mysql-connector-java 连接mysql数据库 1.在jdbc 连接地址后面加上&serverTimezoneGMT%2B8 UTC是统一标准世界时间 ,GMT%2B8 东八区 2.Mysql时区错误&#xff1a; mysql> show variables like %time_zone% ; -…

org.springframework.web.multipart.MaxUploadSizeExceededException

报错&#xff1a; org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the req…

使用Vagrant 和 VirtualBox 搭建虚拟机

VirtualBox 安装 VirtualBox 是 Oracle 开源的虚拟化系统&#xff0c;和 VMware 是同类产品&#xff0c;支持多个平台&#xff0c;可以到官方网站&#xff1a;https://www.virtualbox.org/wiki/Downloads 下载适合你平台的 VirtualBox 最新版本并安装。 Vagrant 安装 到官方网…

Linux 修改系统语言(Centos-7.0)

Centos7系统语言配置信息保存在/etc/locale.conf文件内。 更改步骤如下&#xff1a; 1.使用vim打开locale.conf文件 vim /etc/locale.conf 2.编辑locale.conf文件后保存退出 LANG"en_US.UTF-8"或LANG"zh_CN.UTF-8" 其中&#xff1a;en_US.UTF-8为英语…