添加文档
修改主题配置
This commit is contained in:
104
source/_posts/linux/jenkins安装.md
Normal file
104
source/_posts/linux/jenkins安装.md
Normal file
@@ -0,0 +1,104 @@
|
||||
---
|
||||
title: jenkins安装
|
||||
date: 2021-11-21
|
||||
updated: 2021-11-21
|
||||
tags:
|
||||
- jenkins
|
||||
- linux
|
||||
categories:
|
||||
- linux
|
||||
- jenkins
|
||||
keywords:
|
||||
- jenkins
|
||||
- linux
|
||||
description: jenkins安装
|
||||
top_img: https://i.loli.net/2021/11/21/HAqYGMSTVwJxcBN.jpg
|
||||
comments: true
|
||||
cover: https://i.loli.net/2021/11/21/HAqYGMSTVwJxcBN.jpg
|
||||
copyright: true
|
||||
copyright_author: xzh
|
||||
copyright_author_href: http://xxzhx.cn
|
||||
copyright_url: http://xxzhx.cn
|
||||
copyright_info: 著作权归作者所有。商业转载请联络作者获得授权,非商业转载请注明出处。
|
||||
---
|
||||
|
||||
# jenkins安装
|
||||
|
||||
## 下载jenkins
|
||||
|
||||
[下载地址](http://mirrors.jenkins.io/war-stable/2.303.3/)
|
||||
|
||||

|
||||
|
||||
## 上传至服务器
|
||||
|
||||

|
||||
|
||||
## 运行jenkins war文件
|
||||
|
||||

|
||||
|
||||
```shell
|
||||
# 后台运行jenkinx
|
||||
nohup java -jar jenkins.war > jenkins.log &
|
||||
```
|
||||
|
||||
### 开放端口
|
||||
|
||||
```shell
|
||||
firewall-cmd --zone=public --add-port=8080/tcp --permanent
|
||||
```
|
||||
|
||||
### 重启防火墙
|
||||
|
||||
```shell
|
||||
firewall-cmd --reload
|
||||
```
|
||||
|
||||
## 访问jenkins
|
||||
|
||||
http://ip:8080
|
||||
|
||||

|
||||
|
||||
### 根据页面提示的路径查看密码
|
||||
|
||||
```shell
|
||||
cat /root/.jenkins/secrets/initialAdminPassword
|
||||
```
|
||||
|
||||
### 把显示的密码复制到输入框中
|
||||
|
||||

|
||||
|
||||
## 插件安装
|
||||
|
||||
### 按照自己的需求来选择安装的插件(我选择推荐的)
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 创建用户
|
||||
|
||||

|
||||
|
||||
## 安装完成
|
||||
|
||||

|
||||
|
||||
# jenkins配置
|
||||
|
||||
## 进入配置页
|
||||
|
||||

|
||||
|
||||
## maven配置
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## git配置
|
||||
|
||||

|
||||
Reference in New Issue
Block a user