jenkins安装

Jenkins下载:

http://pkg.jenkins-ci.org/redhat-stable/

安装:

https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions

环境:

jdk:
  1.7 +


[root@super66 ~]# wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
[root@super66 ~]# rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
[root@super66 ~]# yum install -y jenkins


[root@super66 ~]# rpm -ivh jenkins-1.609.2-1.1.noarch.rpm
Preparing... ########################################### [100%]
1:jenkins ########################################### [100%]

[root@super66 ~]# rpm -ivh jenkins-2.7.4-1.1.noarch.rpm
Preparing... ########################################### [100%]
1:jenkins ########################################### [100%]


[root@super66 ~]# /etc/init.d/jenkins start
Starting Jenkins [ OK ]
[root@super66 ~]# ps -ef|grep jen
jenkins 10491 1 49 15:40 ? 00:00:04 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8080 --ajp13Port=8009 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
root 10510 9133 0 15:40 pts/2 00:00:00 grep jen

[root@super66 ~]# netstat -antup|grep 8080
tcp 0 0 :::8080 :::* LISTEN 10491/java

http://192.168.1.66:8080/

 自动化部署之路还很长呢!!!

原文地址:https://www.cnblogs.com/fanxuanhui-linux/p/5906306.html