centos下安装jenkins
1.安装jdk
cd ~/software wget http://download.oracle.com/otn-pub/java/jdk/6u27-b07/jdk-6u27-linux-i586-rpm.bin sudo chmod u+x jdk-6u27-linux-i586-rpm.bin sudo rpm -ivh jdk-6u27-linux-i586.rpm java -version
2.安装maven
cd ~/software wget http://labs.renren.com/apache-mirror//maven/binaries/apache-maven-3.0.3-bin.tar.gz tar -xzvf apache-maven-3.0.3-bin.tar.gz cd /opt sudo mkdir maven sudo chown/chgrp admin maven mv ~/software/apache-maven-3.0.3 /opt/maven
3.配置maven
M2_HOME=/opt/maven/apache-maven-3.0.3 PATH=$PATH:@M2_HOME/bin mvn -version
3.安装jenkins
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key sudo yum install jenkins rpm -ql jenkins
4.配置jenkins
// edit JENKINS_PORT, JENKINS_USER sudo vi /etc/sysconfig/jenkins
5.修改jenkins权限(如果修改JENKINS_USER情况下)
sudo chown/chgrp admin /usr/lib/jenkins sudo chown/chgrp admin /var/log/jenkins sudo chown/chgrp admin /var/cache/jenkins
6.启动jenkins
sudo /sbin/service jenkins start
相关推荐
yserver 2020-08-15
达观数据 2020-11-11
汪康 2020-10-30
ppppfly 2020-10-24
synshitou 2020-10-21
programmeryu 2020-09-24
Topbeyond 2020-08-21
lrcoop 2020-08-18
young依然 2020-08-17
oden 2020-08-16
lrcoop 2020-08-15
王永迪 2020-08-15
pursuemylife 2020-08-14
pandaphinex 2020-08-09
leonranri 2020-07-26
CloasGao 2020-07-21
zccheu 2020-07-18