1. 安装JDK
2. 安装maven
3. 安装git
4. 安装tomcat
tar zxvf apache-tomcat-8.5.14.tar.gz
找到tomcat-->config-->tomcat-users.xml 打开后在<tomcat-users></tomcat-users>之间增加如下用户信息: <role rolename="admin-gui"></role> <role rolename="admin-script"></role> <role rolename="manager-gui"></role> <role rolename="manager-script"></role> <role rolename="manager-jmx"></role> <role rolename="manager-status"></role> <user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-script,admin-gui"/>
5. 下载jenkins.war
http://updates.jenkins-ci.org/download/war/
6. 上传至webapp目录
7. 启动
./bin/startup.sh
8. 访问:
http://10.12.0.79:8081/jenkins/
第一登陆jenkins需要输入密码,在:
/root/.jenkins/secrets/initialAdminPassword