Tomcat 8 下载地址:https://tomcat.apache.org/download-80.cgi

解压tomcat:tar -xf apache-tomcat-8.5.31.tar.gz

创建软链:tomcat -> /apps/svr/apache-tomcat-8.5.31/                   (删除软链:rm –rf test)

创建代码目录:mkdir /apps/sh/web/code

git下载代码:git clone -b branchName git@xxxxx:xxxx/xxx.git

配置相关启动脚本: update_code.sh   start_tomcat.sh

修改tomcat配置文件/apps/svr/tomcat/conf/server.xml  :

  1. 修改为80端口
  2. URIEncoding="UTF-8"  
  3. <Context path="/" docBase="/xxxx" />

修改catalina.sh文件:增加项目所需的环境参数

 

相关文章:

  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2021-05-14
  • 2022-12-23
  • 2021-05-13
  • 2021-11-19
猜你喜欢
  • 2022-02-07
  • 2021-08-12
  • 2022-12-23
  • 2022-02-08
  • 2022-01-08
  • 2021-10-05
  • 2021-06-09
相关资源
相似解决方案