美文网首页
centos7安装Jenkins

centos7安装Jenkins

作者: 霸道ki | 来源:发表于2020-02-13 00:07 被阅读0次

Jenkins安装

1. 下载RPM包

官网:https://jenkins.io/download/
清华镜像站:https://mirrors.tuna.tsinghua.edu.cn/jenkins/ -- 推荐

2. 如果没有安装JAVA,需安装JAVA

[root@localhost ~]# yum install -y java

3. 安装Jenkins

[root@localhost ~]# rpm -ivh jenkins-2.204.2-1.1.noarch.rpm 

4. Jenkins服务默认端口为8080,若发生冲突可修改配置文件

# 修改配置文件 /etc/sysconfig/jenkins
[root@localhost ~]# cat /etc/sysconfig/jenkins  |grep JENKINS_PORT
JENKINS_PORT="10000"

5. 开启服务

[root@localhost ~]# systemctl start jenkins

相关文章

网友评论

      本文标题:centos7安装Jenkins

      本文链接:https://www.haomeiwen.com/subject/rbihfhtx.html