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
相关推荐
K_Men2 小时前
springboot 接入Elasticsearch的聚合查询
spring boot·elasticsearch·jenkins
电商API&Tina4 小时前
【电商API接口】多电商平台数据API接入方案(附带实例)
运维·开发语言·数据库·chrome·爬虫·python·jenkins
梁萌9 小时前
Jenkins自动化部署(docker)
docker·自动化·jenkins·流水线·cicd·smartadmin
xiaoliuliu123459 小时前
libicu-62.1-6.ky10.x86_64.rpm 安装步骤详解(麒麟V10系统)
linux·服务器·centos
tzhou644529 小时前
搭建Jenkins+GitLab持续集成环境
ci/cd·gitlab·jenkins
007php0071 天前
Git 操作偏门指南:常用和隐藏命令与问题解决
java·git·面试·职场和发展·golang·jenkins·php
野猪佩挤1 天前
jenkins-ci/cd yaml模版配置
运维·ci/cd·jenkins
斯普信云原生组1 天前
开源软件日志统一管理方案-Filebeat
运维·jenkins
LucidX1 天前
从零搭建Jenkins+GitLab持续集成环境:详细教程
ci/cd·gitlab·jenkins
飞Link1 天前
【CentOS】Linux(CentOS7)安装教程
linux·运维·服务器·centos