参考官网文档:https://jenkins.io/zh/download/
安装流程:https://pkg.jenkins.io/debian/
1. 添加密钥到系统中
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
2. 修改source.list
add : deb https://pkg.jenkins.io/debian binary/
3. 安装jdk8 或者 jdk11
参考JAVA8安装流程:Install jdk8
4. 更新系统
apt-get update
apt-get install jenkinds.
5. 修改jenkins访问端口
vim /etc/default/jenkins
# port for HTTP connector (default 8080; disable with -1)
HTTP_PORT=8081
6. 重启jenkins服务
systemctl restart jenkins.service
7. 访问jenkins
http://IP:98081
<