centos7安装jenkins

1、前提是系统安装java环境,最好是jdk8。

2、执行以下命令安装jenkins。

   wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo

   rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key 

   yum install -y jenkins

3、上面安装jenkins的war包,找到jenkins的war包位置。

4、java -jar jenkins.war启动,默认8080端口,然后就可以去访问了。


zhumiao
原文地址:https://www.cnblogs.com/zhumiao/p/12657190.html