最近由于我们的测试和生产环境jenkins频频发生错误,索性尝试了一把在阿里云上做jenkins迁移
在阿里云jenkins安装模式是用tomcat安装部署的
[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目录下
[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
sh startup.sh
这样子jenkins就起来了,访问地址为 ip:8080/jenkins即可
[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在当前目录解压即可,全覆盖
tar -xvf jenkins.tar
然后重启jenkins即可
本站资源均来自互联网,仅供研究学习,禁止违法使用和商用,产生法律纠纷本站概不负责!如果侵犯了您的权益请与我们联系!
转载请注明出处: 免费源码网-免费的源码资源网站 » linux tomcat jenkins 迁移
发表评论 取消回复