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
相关推荐
无足鸟ICT9 小时前
【RHCA+】安装Tuned
linux·服务器·centos
风翼靓崽3 天前
jenkins搭建与简单使用
运维·jenkins
小白的码BUG之路3 天前
Jenkins -- gitee+docker+harbor+k8s 部署项目
docker·gitee·jenkins
RuoyiOffice5 天前
KubeSphere 容器云实践:从管理 K8s 到建设企业 PaaS,还需要哪些能力
spring boot·kubernetes·kubesphere·jenkins·paas·微服务部署·ruoyi office
@兽血沸腾8 天前
Windows系统安装Jenkins部署应用至远程Windows服务器操作指南
运维·服务器·jenkins
拖累斯9 天前
Jenkins + Python 全自动跑通「禅道任务/BUG 导出 → 月度开发考核表」
python·jenkins·bug
逐流人9 天前
DevOps 入门实战(一):从 CI/CD 概念到 Jenkins 自动构建部署
运维·云原生·云计算·jenkins·devops
David猪大卫9 天前
【Linux修炼】环境变量、进程地址空间
linux·c语言·经验分享·笔记·学习·ubuntu·centos
Dragon~Snow11 天前
Centos Stream10 安装 MySQL-9.7.2-linux-glibc2.28-x86_64.tar
linux·mysql·centos
温暖小土12 天前
在 CentOS 上安装 Redis Stack
linux·redis·centos