jenkins war 采用tomcat 启动空白页问题

一、问题(1)

1、centos7 安装jenkins ,tomcat9, jenkisn.war 

2、启动tomcat后,输入密码后一直卡在一个页面那里

3、排查原因:看日志发现了一段:

04-Mar-2020 21:31:33.020 WARNING [Handling GET /jenkins/login from 192.168.1xx.xx : http-nio-8080-exec-2 Jenkins/login.jelly] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/side-files/hudson/model/Descriptor/index.html] 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的配置文件context.xml,路径一般在:apache-tomcat-xxx\conf\context.xml,默认只有10M的大小.,cacheMaxSize的单位是kb。

4、解决:在Context中添加<Resources cachingAllowed="true" cacheMaxSize="150000" ></Resources>

二、问题(2)

war包tomcat运行的qing情况下,如果问题(1)已经处理,还是在空白页,则进行一下操作,浏览器另外开一个tab窗口,访问:

http://192.168.1xx.1xx:8080/jenkins/pluginManager/advanced,找到Update Site,然后修改url为:https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json,提交。

最后重启tomcat。

参考:【1】https://www.jianshu.com/p/1e411d225186

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值