centos rpm方式安装jenkins

rpm方式按照jenkins

1. jenkins rpm下载

shell 复制代码
[root@localhost software]# wget https://mirrors.tuna.tsinghua.edu.cn/jenkins/redhat-stable/jenkins-2.361.4-1.1.noarch.rpm

该版本要使用jdk11

2. 创建jenkins安装需要的文件夹

shell 复制代码
[root@localhost software]# mkdir -p /var/cache/jenkins
[root@localhost software]# mkdir -p /var/log/jenkins
[root@localhost software]# mkdir -p /var/lib/jenkins

3. 安装jenkins

shell 复制代码
[root@localhost software]# rpm -ivh jenkins-2.361.4-1.1.noarch.rpm

4. 修改jenkins用户或者端口号

shell 复制代码
vim /etc/sysconfig/jenkins

JENKINS_USER="jenkins"

JENKINS_PORT="8080"

5. 重启jenkins

shell 复制代码
systemctl restart jenkins.service

6. jenkins第一次访问要输入的密码

/var/lib/jenkins/secrets/initialAdminPassword

yum方式安装jenkins

  1. 加入jenkins安装源
shell 复制代码
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo --no-check-certificate

sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
  1. 执行yum安装命令
shell 复制代码
yum -y install jenkins
相关推荐
2601_9618752414 天前
决战申论100题2026|最新|范文
linux·容器·centos·debian·ssh·fabric·vagrant
醉颜凉14 天前
Elasticsearch高性能优化:Bulk API大规模数据导入性能调优全攻略
elasticsearch·性能优化·jenkins
sbjdhjd14 天前
从零搭建企业级 CI/CD(下):Jenkins+GitLab+Harbor 全链路实战指南
git·servlet·ci/cd·云原生·云计算·gitlab·jenkins
wcy1008614 天前
为 CentOS 7.6 (7.6.1810) 配置阿里云 Vault 源
linux·阿里云·centos
小美元14 天前
【爽之】使用jenkins实现前端一键发版
运维·jenkins
changxiang15 天前
Jenkins备忘
运维·jenkins
狮子再回头15 天前
relhat9.1 yum无法安装问题
linux·运维·centos
IT199515 天前
踩坑实录:CentOS 默认 Fail2Ban 挡不住高频并发攻击,漏洞修复一步到位
linux·运维·centos
摇滚侠15 天前
VMvare 安装 Linux CentOS 7
linux·运维·centos
java知路16 天前
centos euler离线下载docker镜像
linux·docker·centos