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
相关推荐
xy123062 天前
OpenStack Train 部署实战(三)控制节点--keystone服务
centos·openstack
欧云服务器6 天前
怎么让脚本命令可以同时在centos、debian、ubuntu执行?
ubuntu·centos·debian
xiaoliuliu123456 天前
CentOS 7 安装 gcc-4.8.5-44.el7.x86_64.rpm 详细步骤(含依赖解决)
linux·运维·centos
txzz88886 天前
CentOS-Stream-10 Secure Shell服务器sshd_config配置文件
linux·centos·sshd_config·ssh配置
海兰6 天前
Jina Embeddings V5 Text + Elasticsearch 9.x 本地部署指南
elasticsearch·jenkins·jina
txzz88886 天前
CentOS-Stream-10 Secure Shell服务器
linux·centos·ssh·secure shell·ssh服务器
luod6 天前
Docker 快速安装Jenkins
java·docker·jenkins
小道仙976 天前
jenkins对接、jenkins-rest
java·servlet·jenkins·jenkins-rest
成为你的宁宁6 天前
Jenkins 自动化部署前后端分离若依项目全攻略:涵盖环境配置、Maven/Node.js 工具安装、GitLab 项目协同,及前后端构建、服务器推送与代码更新验证全步骤
node.js·自动化·gitlab·jenkins·maven
声声长乐6 天前
Jenkins + Docker 完整部署指南
ubuntu·docker·jenkins