logo  

运维备忘录

运维备忘录
作者: 陈安廉

摘要:软件开发进阶系列


安装jenkins


2022-08-03 18:06:02


No subject alternative DNS name matching updates.jenkins.io found,出错原因以及如何解决

https://blog.csdn.net/u010752831/article/details/122934476


Linux系统安装jdk11环境配置

https://blog.csdn.net/hkl_Forever/article/details/123963940


Jenkins的四种安装部署方式以及Jenkins的基本配置与基本使用

https://blog.csdn.net/qq_38628046/article/details/124911103




wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/war-stable/2.332.3/jenkins.war


下载war包直接启动



# jenkins会在构建结束杀掉衍生子进程,导致相关服务启动失败,禁用杀死衍生进程的特性

nohup /usr/local/jdk-11.0.16/bin/java -jar jenkins.war -Dhudson.util.ProcessTree.disable=true --httpPort=9000 >> jenkins.log 2>&1





如遇到git链接不上,可能是使用了低版本的jdk,如java8,更换java11试试。



https://blog.csdn.net/weixin_38556197/article/details/121134641


scp /root/.jenkins/config.xml root@192.168.1.110:/root/.jenkins/config.xml


scp -r /root/.jenkins/users root@192.168.1.110:/root/.jenkins/users


scp -r /root/.jenkins/plugins root@192.168.1.110:/root/.jenkins/plugins


scp -r /root/.jenkins/jobs root@192.168.1.110:/root/.jenkins/jobs


scp -r /root/.jenkins/workspace root@192.168.1.110:/root/.jenkins/workspace




迁移后如找不到maven,看看全局与各个job下的config.xml中maven的配置路径是否正确