1.下载地址:
mirrors.jenkins.io/war-stable/latest/jenkins.war
2.安装环境:
a.jdk:java version "1.8.0_144"
b.CentOS release 6.5 (Final)
c.查看hosts,命令vi /etc/hosts看是否有localhost
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 bogon
3.运行方式
a把jenkins.war放入tomcat的webapps下启动,可以修改tomcat的访问端口号,访问地址:http://192.168.137.103:11111/jenkins
c.命令行启动:java -jar /usr/local/tools/jenkins/jenkins.war --daemon --httpPort=11111 --ajp13Port=-1 --logfile=/usr/local/tools/jenkins/jenkins.log
4.jenkins登录有问题,重置用户
vi /root/.jenkins/config.xml
a.<useSecurity>true</useSecurity> 改为false
b.删除节点authorizationStrategy和securityRealm
c.重启Jenkins,重新分配权限
5.