Jenkins安装
作者:互联网
1. 下载jenkins
下载jenkins.war
http://updates.jenkins-ci.org/download/war/
2. 运行jenkins
nohup java -jar /usr/local/jenkins/jenkins.war>/usr/local/jenkins/jenkins.out&
访问http://ip:8080
获取密码cat /root/.jenkins/secrets/initialAdminPassword这个时候登录成功
会提示下载插件,国外镜像源,不翻墙的话会下载失败所以修改下镜像
3. 修改镜像
cd /root/.jenkins/updates
sed -i 's/http:\/\/updates.jenkins-ci.org\/download/https:\/\/mirrors.tuna.tsinghua.edu.cn\/jenkins/g' default.json && sed -i 's/http:\/\/www.google.com/https:\/\/www.baidu.com/g' default.json
重启jenkins
这时候需要重启jenkins
找到jenkins对应进程
ps -ef | grep jenkins
杀死进程
kill -9 73497
然后重启jenkins
nohup java -jar /usr/local/jenkins/jenkins.war>/usr/local/jenkins/jenkins.out&
下载依赖
设置用户名 密码后登录
标签:http,安装,usr,jenkins,Jenkins,local,war,updates 来源: https://blog.csdn.net/rj2017211811/article/details/119778031