1. 程式人生 > >Ubuntu 18.04 安裝Jenkins

Ubuntu 18.04 安裝Jenkins

# 檢視系統版本
cat /etc/issue
>> Ubuntu 18.04.1 LTS
# 從 https://mirrors.tuna.tsinghua.edu.cn/jenkins/debian-stable/?C=M&O=D 選擇最新版本下載
wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/debian-stable/jenkins_2.150.1_all.deb
# 安裝
dpkg -i jenkins_2.150.1_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 # 訪問8080埠
# 解除安裝
dpkg -r jenkins
apt remove jenkins
apt remove --auto-remove jenkins
apt purge jenkins
apt purge --auto-remove jenkins