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
相关推荐
ayaya_mana4 分钟前
CentOS 7 安装指定内核版本与切换内核版本
linux·运维·centos
YC运维1 小时前
Jenkins 安装,自动化全方位详解文档
运维·自动化·jenkins
半梦半醒*1 小时前
Jenkins流水线项目发布
运维·ci/cd·tomcat·jenkins·maven·运维开发
路由侠内网穿透2 小时前
本地部署开源数据分析平台 Elastic Stack 并实现外部访问( Windows 版本)
运维·服务器·网络·windows·开源·jenkins
奥尔特星云大使3 小时前
CentOS 7 上通过 RPM 包安装 Zabbix 4.x
linux·centos·zabbix
程序员勾践4 小时前
安装nginx
linux·nginx·centos
不惑_7 小时前
如何在 CentOS、Ubuntu 和 Debian 云服务器上安装 Python 3
ubuntu·centos·debian
f8979070708 小时前
配置centos 使用ssh访问文件夹
linux·centos·ssh
fxshy8 小时前
CentOS 7上安装并配置Nginx监听81端口的完整指南
linux·nginx·centos
奥尔特星云大使12 小时前
CentOS 7 安装 MySQL 8
mysql·centos·mysql 8