256 MB 内存,建议大于 512 MB
10 GB 的硬盘空间(用于 Jenkins 和 Docker 镜像)
Java 8 ( JRE 或者 JDK 都可以)
Docker (导航到网站顶部的Get Docker链接以访问适合您平台的Docker下载
Maven 用于构建项目
apt install git
# Jenkins home directory: /root/.jenkins found at: $user.home/.jenkins # 安装前清空下历史目录
java -jar /usr/local/jenkins/jenkins.2.346.1.war --httpPort=8080
*************************************************************
*************************************************************
*************************************************************
Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:
2956590029bf4a4192b69c3607e71456
This may also be found at: /root/.jenkins/secrets/initialAdminPassword
*************************************************************
*************************************************************
cd /etc/init.d/ && vim jenkinsStart # 创建或编辑脚本文件
#!/bin/sh
nohup java -jar /usr/local/jenkins/jenkins.2.346.1.war --httpPort=8080 &
exit 0
cd /etc/init.d/ && chmod +x jenkinsStart # 赋权限
cd /etc/init.d/ && update-rc.d -f jenkinsStart remove # 移除开机自启
cd /etc/init.d/ && update-rc.d jenkinsStart defaults # 加入开机自启
登录地址:http://192.168.111.14:8080
账号:lixing
密码:li1234mm