如何将Jenkins从一台服务器移到另一台服务器? [英] How do I move Jenkins from one server to another?
本文介绍了如何将Jenkins从一台服务器移到另一台服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要将Jenkins版本2.32从服务器A移至Jenkins 2.72.1服务器B. 两台服务器都具有ubuntu 16.04.3 由于内存问题,我无法安装任何插件并无法在服务器A中恢复.有什么办法可以实现这一目标?
I need to move Jenkins version 2.32 from Server A to Jenkins 2.72.1 Server B. Both server have ubuntu 16.04.3 I could not install any plugin and take back up in Server A due to memory issues. Is there any way that I could achieve this?
推荐答案
- 将
JENKINS_HOME
目录中的所有文件复制到新服务器上. - 将新服务器上的
JENKINS_HOME
指向新目录. - 将Jenkins war文件(或servlet容器设置,如果有的话)复制到新机器上并启动它.
- Copy all the files in your
JENKINS_HOME
directory over to the new server. - Point
JENKINS_HOME
on the new server at the new directory. - Copy the Jenkins war file (or your servlet container setup if you have one) over to the new machine and start it up.
所有Jenkins设置,作业,插件,配置等均位于JENKINS_HOME
中.您只需要一个副本即可在其他地方启动它.
All Jenkins settings, jobs, plugins, config, etc. live in JENKINS_HOME
. You just need a copy of it to start it elsewhere.
这篇关于如何将Jenkins从一台服务器移到另一台服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文