安装 Jenkins 2.346.3 LTS

文章讲述了在使用ApacheTomcat8.5.88和Jenkins2.346.3LTS的环境中,由于Jenkins要求Java11或17,需要更新Jenkins到2.387.3并下载相应JDK。同时,针对Tomcat出现的cacheMaxSize不足的问题,建议在context.xml中增加配置行以增大缓存限制,并安装Git。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

环境:
apache-tomcat-8.5.88
Jenkins 2.346.3 LTS

Running Jenkins system
Jenkins requires Java 11 or 17 since Jenkins 2.357 and LTS 2.361.1. Read more about this in the announcement blog post.

https://www.jenkins.io/doc/administration/requirements/java/

  1. 下载Jenkins
    https://sg.mirror.servanamanaged.com/jenkins/war-stable/2.387.3/jenkins.war

  2. 下载jdk
    https://www.oracle.com/cn/java/technologies/downloads/#jdk17-linux

检查系统信息
[root@k8smaster bin]# uname -a
Linux k8smaster 3.10.0-1160.11.1.el7.x86_64 #1 SMP Fri Dec 18 16:34:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

x86_64 x86_64 x86_64 对应下面x64的包,而不是及ARM64.
在这里插入图片描述
note:如果不匹配可能出现一下问题

-bash: /usr/local/jdk-17.0.7/bin/java: cannot execute binary file
  1. Tomcat 修改配置
    启动报错, consider increasing the maximum size of the cache
12-May-2023 10:13:27.821 WARNING [Handling GET /jenkins/static/0de1a211/jsbundles/app.js from 202.105.104.90 : http-nio-8080-exec-1] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/jsbundles/app.js] to the cache for web application [/jenkins] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
12-May-2023 10:13:28.033 WARNING [Handling GET /jenkins/static/0de1a211/jsbundles/fonts/icomoon..ttf from 202.105.104.90 : http-nio-8080-exec-3] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/jsbundles/fonts/icomoon..ttf] to the cache for web application [/jenkins] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

在tomcat的配置文件apache-tomcat-8.5.88\conf\context.xml的Context标签内增加下面一行。重启Tomcat即可。

<Resources cachingAllowed="true" cacheMaxSize="200000" /> 

安装git

yum install git
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值