Centos7安装Jenkins
Docker容器化的方式安装Jenkins
# 1.拉取镜像 docker pull jenkins/jenkins # 2.启动 mkdir /jenkins && chmod 777 /jenkins docker run -itd -p 9090:8080 -p 50000:50000 --name jenkins --privileged=true --restart=always -v /jenkins:/var/jenkins_home jenkins/jenkins:latest # 3.查看Password docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword # 4.更新插件下载源 cd 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 # 5.在插件的高价管理界面修改源地址 https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json # 或 http://mirror.esuni.jp/jenkins/updates/update-center.json
Jenkins复位方式
# 重启jenkins的方法 # 在浏览器的网址输入:http://192.168.1.9:9090/restart 回车即可 # 遇见No such plugin: cloudbees-folder问题,重启即可
相关推荐
达观数据 2020-11-11
汪康 2020-10-30
ppppfly 2020-10-24
synshitou 2020-10-21
programmeryu 2020-09-24
Topbeyond 2020-08-21
lrcoop 2020-08-18
young依然 2020-08-17
oden 2020-08-16
lrcoop 2020-08-15
yserver 2020-08-15
王永迪 2020-08-15
pursuemylife 2020-08-14
pandaphinex 2020-08-09
leonranri 2020-07-26
CloasGao 2020-07-21
zccheu 2020-07-18