update docs

This commit is contained in:
Zhang Peng 2019-07-01 14:11:23 +08:00
parent 1119236f79
commit 71bcca24c5
5 changed files with 365 additions and 183 deletions

View File

@ -1,115 +1,104 @@
# Linux 教程
## [软件安装配置](linux/soft/README.md)
## 软件应用指南
- [JDK 安装](linux/soft/jdk-install.md)
- [Elastic 安装](linux/soft/elastic)
- [Gitlab 安装](linux/soft/kafka-install.md)
- [Jenkins 安装](linux/soft/jenkins-install.md)
- [Kafka 安装](linux/soft/kafka-install.md)
- [Maven 安装](linux/soft/maven-install.md)
- [Nexus 安装](linux/soft/nexus-install.md)
- [Nodejs 安装](linux/soft/nodejs-install.md)
- [RocketMQ 安装](linux/soft/rocketmq-install.md)
- [Svn 安装](linux/soft/svn-install.md)
- [Tomcat 安装](linux/soft/tomcat-install.md)
- [Zookeeper 安装](linux/soft/zookeeper-install.md)
- [Nacos 安装](linux/soft/nacos-install.md)
- [JDK 应用指南](linux/soft/jdk-install.md)
- [Elastic 应用指南](linux/soft/elastic)
- [Gitlab 应用指南](linux/soft/kafka-install.md)
- [Jenkins 应用指南](linux/soft/jenkins.md)
- [Kafka 应用指南](linux/soft/kafka-install.md)
- [Maven 应用指南](linux/soft/maven-install.md)
- [Nexus 应用指南](linux/soft/nexus-install.md)
- [Nodejs 应用指南](linux/soft/nodejs-install.md)
- [RocketMQ 应用指南](linux/soft/rocketmq-install.md)
- [Svn 应用指南](linux/soft/svn-install.md)
- [Tomcat 应用指南](linux/soft/tomcat-install.md)
- [Zookeeper 应用指南](linux/soft/zookeeper-install.md)
- [Nacos 应用指南](linux/soft/nacos-install.md)
## 脚本
## Linux 命令
- [软件安装配置脚本集合](https://github.com/dunwu/linux-tutorial/tree/master/codes/linux/soft)
- [查看 Linux 命令帮助信息](linux/cli/查看Linux命令帮助信息.md)
- [Linux 文件目录管理](linux/cli/Linux文件目录管理.md)
- [Linux 文件内容查看命令](linux/cli/Linux文件内容查看编辑.md)
- [Linux 文件压缩和解压](linux/cli/Linux文件压缩和解压.md)
- [Linux 用户管理](linux/cli/Linux用户管理.md)
- [Linux 系统管理](linux/cli/Linux系统管理.md)
- [Linux 网络管理](linux/cli/Linux网络管理.md)
- [Linux 硬件管理](linux/cli/Linux硬件管理.md)
- [Linux 软件管理](linux/cli/Linux硬件管理.md)
> 提供一键式安装、配置软件脚本
## Linux 运维
## 知识点
- [linux 典型运维应用](linux/ops/linux典型运维应用.md)
- [samba 使用详解](linux/ops/samba使用详解.md)
## Docker 教程
## Git 教程
- [Git 快速指南](git/git-quickstart.md)
- [Git 配置](git/git-configuration.md)
- [git-flow 工作流](git/git-flow.md)
- [Git 常见问题](git/git-faq.md)
## 工具和脚本
- [软件应用指南配置脚本集合](https://github.com/dunwu/linux-tutorial/tree/master/codes/linux/soft)
> 提供一键式应用指南、配置软件脚本
- [Linux 命令教程](linux/cli)
- [查看 Linux 命令帮助信息](linux/cli/查看Linux命令帮助信息.md)
- [Linux 文件目录管理](linux/cli/Linux文件目录管理.md)
- [Linux 文件内容查看命令](linux/cli/Linux文件内容查看编辑.md)
- [Linux 文件压缩和解压](linux/cli/Linux文件压缩和解压.md)
- [Linux 用户管理](linux/cli/Linux用户管理.md)
- [Linux 系统管理](linux/cli/Linux系统管理.md)
- [Linux 网络管理](linux/cli/Linux网络管理.md)
- [Linux 硬件管理](linux/cli/Linux硬件管理.md)
- [Linux 软件管理](linux/cli/Linux硬件管理.md)
- [Linux 运维](linux/ops/README.md)
- [linux 典型运维应用](linux/ops/linux典型运维应用.md)
- [samba 使用详解](linux/ops/samba使用详解.md)
- [Docker 教程](docker)
- [Git 教程](git/README.md)
- [Git 快速指南](git/git-quickstart.md)
- [Git 配置](git/git-configuration.md)
- [git-flow 工作流](git/git-flow.md)
- [Git 常见问题](git/git-faq.md)
- [Nginx 教程](https://github.com/dunwu/nginx-tutorial)
- [Vim](linux/tool/vim.md)
- 脚本语言
- [一篇文章让你彻底掌握 shell 语言](lang/shell.md)
- [一篇文章让你彻底掌握 python 语言](lang/python.md)
- 运维
- [Linux 典型运维应用](linux/ops/linux典型运维应用.md)
- [samba 使用详解](linux/ops/samba使用详解.md)
- [一篇文章让你彻底掌握 shell 语言](lang/shell.md)
- [一篇文章让你彻底掌握 python 语言](lang/python.md)
## 学习资源
### 命令行检索
- [Linux 命令大全](http://man.linuxde.net/)
- [linux-command](https://jaywcjlove.gitee.io/linux-command/)
### 社区网站
- [Linux 中国](https://linux.cn/) - 各种资讯、文章、技术
- [实验楼](https://www.shiyanlou.com/) - 免费提供了 Linux 在线环境,不用在自己机子上装系统也可以学习 Linux超方便实用。
- [鸟哥的 linux 私房菜](http://linux.vbird.org/) - 非常适合 Linux 入门初学者看的教程。
- [Linux 公社](http://www.linuxidc.com/) - Linux 相关的新闻、教程、主题、壁纸都有。
- [Linux Today](http://www.linuxde.net) - Linux 新闻资讯发布Linux 职业技术学习!。
### 知识相关
- [Linux 思维导图整理](http://www.jianshu.com/p/59f759207862)
- [Linux 初学者进阶学习资源整理](http://www.jianshu.com/p/fe2a790b41eb)
- [Linux 基础入门(新版)](https://www.shiyanlou.com/courses/1)
- [【译】Linux 概念架构的理解](http://www.jianshu.com/p/c5ae8f061cfe) [En](http://oss.org.cn/ossdocs/linux/kernel/a1/index.html)
- [Linux 守护进程的启动方法](http://www.ruanyifeng.com/blog/2016/02/linux-daemon.html)
- [Linux 编程之内存映射](https://www.shiyanlou.com/questions/2992)
- [Linux 知识点小结](https://blog.huachao.me/2016/1/Linux%E7%9F%A5%E8%AF%86%E7%82%B9%E5%B0%8F%E7%BB%93/)
- [10 大白帽黑客专用的 Linux 操作系统](https://linux.cn/article-6971-1.html)
### 软件工具
- [超赞的 Linux 软件](https://www.gitbook.com/book/alim0x/awesome-linux-software-zh_cn/details) Github 仓库[Zh](https://github.com/alim0x/Awesome-Linux-Software-zh_CN) [En](https://github.com/VoLuong/Awesome-Linux-Software)
- [程序员喜欢的 9 款最佳的 Linux 文件比较工具](http://os.51cto.com/art/201607/513796.htm)
- [提高 Linux 开发效率的 5 个工具](http://www.codeceo.com/article/5-linux-productivity-tools.html)
- [你要了解的 11 款面向 Linux 系统的一流备份实用工具](http://os.51cto.com/art/201603/508027.htm)
- [16 个很有用的在线工具](http://www.simlinux.com/archives/264.html)
- Adobe 软件的最佳替代品 [原文在这里](https://linux.cn/article-8928-1.html)
- [Evince (Adobe Acrobat Reader)](https://wiki.gnome.org/Apps/Evince) 一个“支持多种文档格式的文档查看器”,可以查看 PDF还支持各种漫画书格式
- [Pixlr (Adobe Photoshop)](https://pixlr.com/) 一个强大的图像编辑工具
- [Inkscape (Adobe Illustrator)](https://inkscape.org/zh/) 一个专业的矢量图形编辑器
- [Pinegrow Web Editor (Adobe Dreamweaver)](https://pinegrow.com/) 一个可视化编辑制作 HTML 网站
- [Scribus (Adobe InDesign)](https://www.scribus.net/) 一个开源电子杂志制作软件
- [Webflow (Adobe Muse)](https://webflow.com/) 一款可以帮助用户不用编码就可以快速创建网站的谷歌浏览器插件。
- [Tupi (Adobe Animate)](http://www.maefloresta.com/portal/) 一款可以创建 HTML5 动画的工具。
- [Black Magic Fusion (Adobe After Effects)](https://www.blackmagicdesign.com) 一款先进的合成软件,广泛应用于视觉特效、广电影视设计以及 3D 动画设计等领域。
### 中国开源镜像站点
- 阿里云开源镜像站http://mirrors.aliyun.com/
- 网易开源镜像站http://mirrors.163.com/
- 搜狐开源镜像站http://mirrors.sohu.com/
- 北京交通大学http://mirror.bjtu.edu.cn/ \<教育网荐\>
- 兰州大学http://mirror.lzu.edu.cn/ \<西北高校 FTP 搜索引擎\>
- 厦门大学http://mirrors.xmu.edu.cn/
- 上海交通大学http://ftp.sjtu.edu.cn/
- 清华大学http://mirrors.tuna.tsinghua.edu.cn/
- http://mirrors6.tuna.tsinghua.edu.cn/
- http://mirrors4.tuna.tsinghua.edu.cn/
- 中国科学技术大学http://mirrors.ustc.edu.cn/
- http://ipv4.ustc.edu.cn/ \<教育网、电信\>
- http://ipv6.ustc.edu.cn/ \<IPv6 only\>
- 东北大学http://mirror.neu.edu.cn/
- 浙江大学http://mirrors.zju.edu.cn/
- 东软信息学院http://mirrors.neusoft.edu.cn/
- 命令行检索
- [Linux 命令大全](http://man.linuxde.net/)
- [linux-command](https://jaywcjlove.gitee.io/linux-command/)
- 社区网站
- [Linux 中国](https://linux.cn/) - 各种资讯、文章、技术
- [实验楼](https://www.shiyanlou.com/) - 免费提供了 Linux 在线环境,不用在自己机子上装系统也可以学习 Linux超方便实用。
- [鸟哥的 linux 私房菜](http://linux.vbird.org/) - 非常适合 Linux 入门初学者看的教程。
- [Linux 公社](http://www.linuxidc.com/) - Linux 相关的新闻、教程、主题、壁纸都有。
- [Linux Today](http://www.linuxde.net) - Linux 新闻资讯发布Linux 职业技术学习!。
- 知识相关
- [Linux 思维导图整理](http://www.jianshu.com/p/59f759207862)
- [Linux 初学者进阶学习资源整理](http://www.jianshu.com/p/fe2a790b41eb)
- [Linux 基础入门(新版)](https://www.shiyanlou.com/courses/1)
- [【译】Linux 概念架构的理解](http://www.jianshu.com/p/c5ae8f061cfe) [En](http://oss.org.cn/ossdocs/linux/kernel/a1/index.html)
- [Linux 守护进程的启动方法](http://www.ruanyifeng.com/blog/2016/02/linux-daemon.html)
- [Linux 编程之内存映射](https://www.shiyanlou.com/questions/2992)
- [Linux 知识点小结](https://blog.huachao.me/2016/1/Linux%E7%9F%A5%E8%AF%86%E7%82%B9%E5%B0%8F%E7%BB%93/)
- [10 大白帽黑客专用的 Linux 操作系统](https://linux.cn/article-6971-1.html)
- 软件工具
- [超赞的 Linux 软件](https://www.gitbook.com/book/alim0x/awesome-linux-software-zh_cn/details) Github 仓库[Zh](https://github.com/alim0x/Awesome-Linux-Software-zh_CN) [En](https://github.com/VoLuong/Awesome-Linux-Software)
- [程序员喜欢的 9 款最佳的 Linux 文件比较工具](http://os.51cto.com/art/201607/513796.htm)
- [提高 Linux 开发效率的 5 个工具](http://www.codeceo.com/article/5-linux-productivity-tools.html)
- [你要了解的 11 款面向 Linux 系统的一流备份实用工具](http://os.51cto.com/art/201603/508027.htm)
- [16 个很有用的在线工具](http://www.simlinux.com/archives/264.html)
- Adobe 软件的最佳替代品 [原文在这里](https://linux.cn/article-8928-1.html)
- [Evince (Adobe Acrobat Reader)](https://wiki.gnome.org/Apps/Evince) 一个“支持多种文档格式的文档查看器”,可以查看 PDF还支持各种漫画书格式
- [Pixlr (Adobe Photoshop)](https://pixlr.com/) 一个强大的图像编辑工具
- [Inkscape (Adobe Illustrator)](https://inkscape.org/zh/) 一个专业的矢量图形编辑器
- [Pinegrow Web Editor (Adobe Dreamweaver)](https://pinegrow.com/) 一个可视化编辑制作 HTML 网站
- [Scribus (Adobe InDesign)](https://www.scribus.net/) 一个开源电子杂志制作软件
- [Webflow (Adobe Muse)](https://webflow.com/) 一款可以帮助用户不用编码就可以快速创建网站的谷歌浏览器插件。
- [Tupi (Adobe Animate)](http://www.maefloresta.com/portal/) 一款可以创建 HTML5 动画的工具。
- [Black Magic Fusion (Adobe After Effects)](https://www.blackmagicdesign.com) 一款先进的合成软件,广泛应用于视觉特效、广电影视设计以及 3D 动画设计等领域。
- 中国开源镜像站点
- [阿里云开源镜像站](http://mirrors.aliyun.com/)
- [网易开源镜像站](http://mirrors.163.com/)
- [搜狐开源镜像站](http://mirrors.sohu.com/)
- [北京交通大学](http://mirror.bjtu.edu.cn/)
- [兰州大学](http://mirror.lzu.edu.cn/)
- [厦门大学](http://mirrors.xmu.edu.cn/)
- [上海交通大学](http://ftp.sjtu.edu.cn/)
- [清华大学](http://mirrors.tuna.tsinghua.edu.cn/)
- [中国科学技术大学](http://mirrors.ustc.edu.cn/)
- [东北大学](http://mirror.neu.edu.cn/)
- [浙江大学](http://mirrors.zju.edu.cn/)
- [东软信息学院](http://mirrors.neusoft.edu.cn/)

7
docs/coverpage.md Normal file
View File

@ -0,0 +1,7 @@
<div align="center"><img width="100px" src="http://dunwu.test.upcdn.net/images/others/zp.png"/></div>
# Linux 教程
> Linux 教程
[开始阅读](README.md)

View File

@ -2,20 +2,211 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>linux-tutorial</title>
<title>Linux Tutorial</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Linux 教程" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
<link rel="icon" href="http://dunwu.test.upcdn.net/images/others/zp_50_50.png" type="image/x-icon" />
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css" title="vue" />
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/dark.css" title="dark" disabled />
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/buble.css" title="buble" disabled />
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/pure.css" title="pure" disabled />
<style>
nav.app-nav li ul {
min-width: 100px;
h1 + ul {
display: block !important;
}
.content img,
.sidebar img {
border: none;
border-radius: 8px;
box-shadow: 0 0 8px grey;
}
.content,
.sidebar,
.sidebar-toggle,
body,
.search input {
color: #6b615f !important;
background-color: #fff4e6 !important;
}
.content strong,
.sidebar strong,
body strong {
color: #5c5869 !important;
}
</style>
<style>
.cover-main .anchor span {
text-align: center;
background-image: -webkit-linear-gradient(left, #ffdcb4, #b96972 25%, #e88a57 50%, #804170 75%, #a596cd);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
-webkit-background-size: 200% 100%;
-webkit-animation: masked-animation 1.5s infinite linear;
font-family: "Brush Script MT", 隶书, serif;
font-weight: 600;
}
.cover-main blockquote p {
color: #5c5869;
font-family: "Arial", 隶书, serif;
}
.cover-main ul a:hover {
color: #fe4165 !important;
}
.cover-main p a:hover {
text-align: center;
background-image: -webkit-linear-gradient(left, #ffdcb4, #b96972 25%, #e88a57 50%, #804170 75%, #a596cd);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
-webkit-background-size: 200% 100%;
-webkit-animation: masked-animation 1.5s infinite linear;
}
/* content 样式内容 */
.sidebar a,
.content a {
color: #399ab2 !important;
text-decoration: none !important;
}
.sidebar a:hover,
.content a:hover {
color: #fe4165 !important;
text-decoration: underline !important;
}
.content h1 :hover,
.content h2 :hover,
.content h3 :hover,
.content h4 :hover {
text-align: center;
background-image: -webkit-linear-gradient(left, #ffdcb4, #b96972 25%, #e88a57 50%, #804170 75%, #a596cd);
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
-webkit-background-size: 200% 100%;
-webkit-animation: masked-animation 1.5s infinite linear;
font-family: "微软雅黑", serif;
font-weight: bold;
}
@-webkit-keyframes masked-animation {
0% {
background-position: 0 0;
}
100% {
background-position: -100% 0;
}
}
.content h1 a,
.content h1 span {
color: #399ab2 !important;
font-size: 30px;
text-shadow: 2px 2px 5px grey;
}
.content h2 a,
.content h2 span {
color: #60497c !important;
font-size: 26px;
text-shadow: 2px 2px 5px grey;
}
.content h3 a,
.content h3 span {
color: #346093 !important;
font-size: 22px;
text-shadow: 2px 2px 5px grey;
}
.content h4 a,
.content h4 span {
font-size: 18px;
color: #78943a;
text-shadow: 2px 2px 5px grey;
}
img.emoji {
border: none;
border-radius: 0;
box-shadow: none;
}
</style>
<style>
.content > p {
font-size: 16px !important;
line-height: 24px;
}
.content blockquote {
display: block;
padding: 0 16px;
border-left: 8px solid #dddfe4;
background: #fff2c9;
overflow: auto;
}
.content pre {
padding-left: 0 !important;
padding-right: 0 !important;
border-radius: 8px;
box-shadow: 1px 1px 20px 3px #dddddd !important;
}
.content code {
background-color: white;
border-radius: 6px;
box-shadow: 1px 1px 1px whitesmoke;
}
.content table {
display: table;
padding-left: 0 !important;
padding-right: 0 !important;
box-shadow: 2px 2px 20px 6px #dddddd !important;
}
.content th {
font-weight: bold;
font-size: 16px;
background-color: #cce6b6;
}
</style>
<style>
@media (min-width: 600px) {
.markdown-section pre > code {
font-size: 0.9rem !important;
}
}
@media (max-width: 600px) {
.markdown-section pre > code {
padding-top: 5px;
padding-bottom: 5px;
}
pre:after {
content: "" !important;
}
}
@media (min-width: 600px) {
pre code {
padding-left: 20px !important;
}
}
@media (max-width: 600px) {
pre {
padding-left: 0px !important;
padding-right: 0px !important;
}
}
</style>
</head>
@ -23,27 +214,19 @@
<div id="app">正在加载...</div>
<script>
window.$docsify = {
auto2top: true,
loadNavbar: "navbar.md",
name: "linux-tutorial",
name: "Linux Tutorial",
repo: "https://github.com/dunwu/linux-tutorial",
logo: "http://dunwu.test.upcdn.net/images/others/zp_100_100.png",
auto2top: true,
coverpage: "coverpage.md",
maxLevel: 4,
subMaxLevel: 4,
formatUpdated: "{MM}/{DD} {HH}:{mm}",
pagination: {
previousText: "上一章节",
nextText: "下一章节",
crossChapter: true
},
// coverpage: true,
// 完整配置参数
// 完整配置参数
search: {
maxAge: 86400000, // 过期时间,单位毫秒,默认一天
paths: ["/", "linux/cli/", "linux/ops/", "linux/soft/", "git/"], // or 'auto'
placeholder: "搜索",
maxAge: 86400000,
paths: ["/"],
placeholder: "🔍 搜索",
noData: "没有结果!",
// 搜索标题的最大程级, 1 - 6
depth: 4
}
};
@ -51,12 +234,12 @@
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/emoji.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.js"></script>
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.js"></script>
<!--代码高亮-->
<script src="//unpkg.com/prismjs/components/prism-basic.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-java.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-markdown.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-nginx.min.js"></script>
</body>
</html>

View File

@ -4,53 +4,60 @@
>
> - JDKJDK7+,官网推荐是 JDK 8
<!-- TOC depthFrom:2 depthTo:3 -->
## 部署
- [安装](#安装)
- [启动](#启动)
- [脚本](#脚本)
- [FAQ](#faq)
- [登录密码](#登录密码)
- [忘记密码](#忘记密码)
- [卡在 check 页面](#卡在-check-页面)
- [卡在 getting startted 页面](#卡在-getting-startted-页面)
- [参考资料](#参考资料)
> 参考:[官方安装文档](https://jenkins.io/zh/doc/book/installing/)
<!-- /TOC -->
## 安装
### War 包部署
安装步骤如下:
1下载并解压到本地
进入官网下载地址https://jenkins.io/download/ ,选择合适的版本下载。
进入[官网下载地址](https://jenkins.io/zh/download/),选择合适的版本下载。
我选择的是最新稳定 war 版本 2.89.4http://mirrors.jenkins.io/war-stable/latest/jenkins.war
我个人喜欢存放在:`/opt/software/jenkins`
```
```bash
mkdir -p /opt/software/jenkins
wget -O /opt/software/jenkins/jenkins.war http://mirrors.jenkins.io/war-stable/latest/jenkins.war
wget -O /opt/software/jenkins/jenkins.war http://mirrors.jenkins.io/war-stable/latest/jenkins.wa
```
## 启动
2启动
如果你和我一样,选择 war 版本,那么你可以将 war 移到 Tomcat 的 webapps 目录下,通过 Tomcat 来启动。
当然,也可以通过 `java -jar` 方式来启动。
**启动 jenkins 服务**
```
```bash
cd /opt/software/jenkins
nohup java -jar jenkins.war --httpPort=8080 >> nohup.out 2>&1 &
```
## 脚本
### rpm 包部署
| [安装脚本](https://github.com/dunwu/OS/tree/master/codes/deploy/tool/jenkins) |
1下载安装
```bash
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum install jenkins
```
2启动
```bash
systemctl start jenkins
```
### 访问
1. 打开浏览器进入链接 `http://localhost:8080`.
2. 按照说明完成安装.
## 系统配置
## FAQ
@ -93,8 +100,6 @@ nohup java -jar jenkins.war --httpPort=8080 >> nohup.out 2>&1 &
**现象**:输入密码后,卡在 check 页面
<br><div align="center"><img src="images/jenkins-checking.png"/></div><br>
**原因**jenkins 在安装插件前总是尝试连接 www.google.com来判断网络是否连通。谷歌的网站在大陆是连不上的所以会出现这个问题。
**解决方案**:执行`vim /root/.jenkins/updates/default.json`,将 `connectionCheckUrl` 后的 `www.google.com` 改为 `www.baidu.com` 。然后重启即可。
@ -119,7 +124,38 @@ sed -i 's/www.google.com/www.baidu.com/g' /root/.jenkins/updates/default.json
sed -i '/^<url>/s/.*/<url>http:\/\/mirror.xmission.com\/jenkins\/updates\/update-center.json<\/url>/g' /root/.jenkins/hudson.model.UpdateCenter.xml
```
## 更多内容
### 以 root 用户运行
1修改 jenkins 用户
```bash
vim /etc/sysconfig/jenkins
```
修改用户
```bash
$JENKINS_USER="root"
```
2修改 `Jenkins` 相关文件夹用户权限
```bash
chown -R root:root /var/lib/jenkins
chown -R root:root /var/cache/jenkins
chown -R root:root /var/log/jenkins
```
3重启 Jenkins
```
systemctl restart jenkins
```
## 参考资料
- **官方**
- [Jenkins 官网](https://jenkins.io/zh/)
- **引申**
- [操作系统、运维部署总结系列](https://github.com/dunwu/OS)

View File

@ -1,33 +0,0 @@
- :abc: [Linux 命令](linux/cli/README.md)
- [查看 Linux 命令帮助信息](linux/cli/查看Linux命令帮助信息.md)
- [Linux 文件目录管理](linux/cli/Linux文件目录管理.md)
- [Linux 文件内容查看命令](linux/cli/Linux文件内容查看编辑.md)
- [Linux 文件压缩和解压](linux/cli/Linux文件压缩和解压.md)
- [Linux 用户管理](linux/cli/Linux用户管理.md)
- [Linux 系统管理](linux/cli/Linux系统管理.md)
- [Linux 网络管理](linux/cli/Linux网络管理.md)
- [Linux 硬件管理](linux/cli/Linux硬件管理.md)
- [Linux 软件管理](linux/cli/Linux硬件管理.md)
- :wrench: [Linux 运维](linux/ops/README.md)
- [linux 典型运维应用](linux/ops/linux典型运维应用.md)
- [samba 使用详解](linux/ops/samba使用详解.md)
- :package: [软件安装配置](linux/soft/README.md)
- [JDK 安装](linux/soft/jdk-install.md)
- [Elastic 安装](linux/soft/elastic)
- [Gitlab 安装](linux/soft/kafka-install.md)
- [Jenkins 安装](linux/soft/jenkins-install.md)
- [Kafka 安装](linux/soft/kafka-install.md)
- [Maven 安装](linux/soft/maven-install.md)
- [Nexus 安装](linux/soft/nexus-install.md)
- [Nginx 教程](https://github.com/dunwu/nginx-tutorial)
- [Nodejs 安装](linux/soft/nodejs-install.md)
- [RocketMQ 安装](linux/soft/rocketmq-install.md)
- [Svn 安装](linux/soft/svn-install.md)
- [Tomcat 安装](linux/soft/tomcat-install.md)
- [Zookeeper 安装](linux/soft/zookeeper-install.md)
- [Nacos 安装](linux/soft/nacos-install.md)
- :gift: [Git 教程](git/README.md)
- [Git 快速指南](git/git-quickstart.md)
- [Git 配置](git/git-configuration.md)
- [git-flow 工作流](git/git-flow.md)
- [Git 常见问题](git/git-faq.md)