Ubuntu 18.04.1 LTS 安装jenkins
一、安装
cat /etc/issue
>> Ubuntu 18.04.1 LTS
wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/debian-stable/jenkins_2.235.5_all.deb
dpkg -i jenkins_2.235.5_all.deb
dpkg -L jenkins
vim /etc/default/jenkins
/etc/init.d/jenkins start
/etc/init.d/jenkins stop
/etc/init.d/jenkins restart
/etc/init.d/jenkins status
apt update && apt install daemon
二、卸载
dpkg -r jenkins
apt remove jenkins
apt remove --auto-remove jenkins
apt purge jenkins
apt purge --auto-remove jenkins
三、解决jenkins插件安装慢
https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json
$ find . -name default.json
./updates/default.json
$ find / -name default.json
/var/lib/jenkins/updates/default.json
:1,$s/https:\/\/updates.jenkins.io\/download/https:\/\/mirrors.tuna.tsinghua.edu.cn\/jenkins/g
:1,$s/http:\/\/www.google.com/https:\/\/www.baidu.com/g