# 安装repo
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
# 使用yum安装
yum install -y jenkins 默认安装最新的
# 启动jenkins
service jenkins start
# 若启动失败将java软连接到 /user/bin目录
ln -s /usr/local/jdk1.8.0_211/bin/java /usr/bin/java
相关目录:
/usr/lib/jenkins/jenkins.war WAR包
/etc/sysconfig/jenkins 配置文件
/var/lib/jenkins/ 默认的JENKINS_HOME目录
/var/log/jenkins/jenkins.log Jenkins日志文件
网友评论