歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

centos 安裝 jenkins

1 wget -O /etc/yum.repos.d/jenkins.repohttp://pkg.jenkins-ci.org/redhat/jenkins.repo 下載包
2 rpm --importhttp://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
3 yum install jenkins 安裝
4 vi /etc/sysconfig/jenkins 查看配置文件
5 service jenkins start 啟動 報錯Starting Jenkins bash: /usr/bin/java: No such file or directory
6 vi /etc/init.d/jenkins 添加java 路徑
/etc/alternatives/java
/usr/lib/jvm/java-1.6.0/bin/java
/usr/lib/jvm/jre-1.6.0/bin/java
/usr/lib/jvm/java-1.7.0/bin/java
/usr/lib/jvm/jre-1.7.0/bin/java
/usr/lib/jvm/java-1.8.0/bin/java
/usr/lib/jvm/jre-1.8.0/bin/java
/usr/bin/java
/usr/java/bin/java------------我電腦java路徑
7 service jenkins start 可以訪問了 端口默認是8080
8 /etc/sysconfig/jenkins 查看配置文件 可以修改端口
Copyright © Linux教程網 All Rights Reserved