linux安装jenkins

1、jdk的安装

wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm

解压: rpm -ivh jdk-8u131-linux-x64.rpm

配置环境变量:

vim ~/.bash_profile

2、

sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo

sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

3、下载war

wget http://mirrors.jenkins.io/war-stable/latest/jenkins.war

4、下载tomcat

wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-9/v9.0.35/src/apache-tomcat-9.0.35-src.tar.gz

解压:

tar -xzvf apache-tomcat-9.0.35-src.tar.gz

5、执行:

java -jar jenkins.war

你可能感兴趣的:(linux安装jenkins)