linux tomcat jenkins 迁移

最近由于我们的测试和生产环境jenkins频频发生错误,索性尝试了一把在阿里云上做jenkins迁移

在阿里云jenkins安装模式是用tomcat安装部署的

bash 复制代码
[root@k8s-master local]# ls
aegis  bin  cloudmonitor  etc  games  go  ilogtail  include  lib  lib64  libexec  sbin  share  src  tomcat  tomcat.tar
[root@k8s-master local]# pwd
/usr/local
[root@k8s-master local]# 

把tomcat.tar丢在/usr/local目录下即可,然后解压,进入到/usr/local/tomcat/bin目录下

bash 复制代码
[root@k8s-master local]# cd tomcat/
[root@k8s-master tomcat]# ls
bin  BUILDING.txt  conf  CONTRIBUTING.md  lib  LICENSE  logs  NOTICE  README.md  RELEASE-NOTES  RUNNING.txt  temp  webapps  work
[root@k8s-master tomcat]# cd bin
[root@k8s-master bin]# ls
bootstrap.jar  catalina-tasks.xml  commons-daemon.jar            configtest.sh  digest.sh         setclasspath.sh  startup.bat      tomcat-native.tar.gz  version.bat
catalina.bat   ciphers.bat         commons-daemon-native.tar.gz  daemon.sh      nohup.out         shutdown.bat     startup.sh       tool-wrapper.bat      version.sh
catalina.sh    ciphers.sh          configtest.bat                digest.bat     setclasspath.bat  shutdown.sh      tomcat-juli.jar  tool-wrapper.sh
[root@k8s-master bin]# 

执行命令,启动tomcat

bash 复制代码
sh startup.sh

这样子jenkins就起来了,访问地址为 ip:8080/jenkins即可

bash 复制代码
[root@k8s-master ~]# ls -la
total 1488644
dr-xr-x---. 12 root root       4096 Aug 19 15:01 .
dr-xr-xr-x. 22 root root       4096 Aug 19 14:54 ..
-rw-------   1 root root      35132 Aug 19 11:05 .bash_history
-rw-r--r--.  1 root root         18 Dec 29  2013 .bash_logout
-rw-r--r--.  1 root root        176 Dec 29  2013 .bash_profile
-rw-r--r--.  1 root root        289 Jun 20 19:24 .bashrc
drwx------   5 root root       4096 Aug 19 15:01 .cache
-rw-r--r--.  1 root root        100 Dec 29  2013 .cshrc
drwx------   2 root root       4096 Aug 19 15:50 .docker
-rw-r--r--   1 root root  149052534 Apr 21  2023 go1.19.8.linux-amd64.tar.gz
drwxr-x---   3 root root       4096 Aug 19 14:11 .groovy
drwxr-x---   3 root root       4096 Aug 19 14:01 .java
drwxr-x---  13 root root       4096 Aug 19 15:51 .jenkins
-rw-r--r--   1 root root 1375191040 Aug 19 10:29 jenkins.tar
drwxr-xr-x   3 root root       4096 Jun 24 10:22 .kube
drwxr-xr-x   2 root root       4096 Nov 30  2021 .pip
drwxr-----   3 root root       4096 Jun 22 15:48 .pki
-rw-r--r--   1 root root        206 Jun 20 18:19 .pydistutils.cfg
-rw-------   1 root root       1024 Jun 24 10:22 .rnd
drwx------   2 root root       4096 Jul 18 13:54 .ssh
-rw-r--r--.  1 root root        129 Dec 29  2013 .tcshrc
drwxr-xr-x   2 root root       4096 Jul 18 13:54 temp
-rw-------   1 root root       5417 Aug 19 15:01 .viminfo
[root@k8s-master ~]# 

把打包的jenkins.tar在当前目录解压即可,全覆盖

bash 复制代码
tar -xvf jenkins.tar

然后重启jenkins即可

相关推荐
极客先躯24 分钟前
如何自动提取Git指定时间段的修改文件?Win/Linux双平台解决方案
linux·git·elasticsearch
suijishengchengde1 小时前
****LINUX时间同步配置*****
linux·运维
qiuqyue1 小时前
基于虹软Linux Pro SDK的多路RTSP流并发接入、解码与帧级处理实践
linux·运维·网络
切糕师学AI2 小时前
Linux 操作系统简介
linux
南烟斋..2 小时前
GDB调试核心指南
linux·服务器
爱跑马的程序员2 小时前
Linux 如何查看文件夹的大小(du、df、ls、find)
linux·运维·ubuntu
oMcLin5 小时前
如何在 Ubuntu 22.04 LTS 上部署并优化 Magento 电商平台,提升高并发请求的响应速度与稳定性?
linux·运维·ubuntu
Qinti_mm5 小时前
Linux io_uring:高性能异步I/O革命
linux·i/o·io_uring
优雅的38度5 小时前
linux环境下,使用docker安装apache kafka (docker-compose)
linux·架构
想唱rap5 小时前
表的约束条件
linux·数据库·mysql·ubuntu·bash