File tree Expand file tree Collapse file tree 15 files changed +45
-45
lines changed
Expand file tree Collapse file tree 15 files changed +45
-45
lines changed Original file line number Diff line number Diff line change 11<p align =" center " >
22 <a href="https://dunwu.github.io/linux-tutorial/" target="_blank" rel="noopener noreferrer">
3- <img src="https://raw.githubusercontent.com/dunwu/images/dev /common/logo/linux.svg" alt="logo" width="100px">
3+ <img src="https://raw.githubusercontent.com/dunwu/images/master /common/logo/linux.svg" alt="logo" width="100px">
44 </a>
55</p >
66
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ yum install -y git gcc gcc-c++ make automake autoconf libtool pcre pcre-devel zl
5959mkdir -p ${path}
6060path=/opt/fdfs
6161mkdir -p ${path} /libfastcommon
62- curl -o ${path} /libfastcommon.zip https ://raw.githubusercontent.com/dunwu/images/dev /soft/fdfs/libfastcommon.zip
62+ curl -o ${path} /libfastcommon.zip http ://dunwu.test.upcdn.net /soft/fdfs/libfastcommon.zip
6363if [[ ! -f ${path} /libfastcommon.zip ]]; then
6464 printf " ${RED} [Error]install libfastcommon failed,exit. ${RESET} \n"
6565 exit 1
@@ -73,7 +73,7 @@ chmod +x -R ${path}/libfastcommon/*.sh
7373
7474printf " ${GREEN} >>>>>>>>> install fastdfs${RESET} "
7575mkdir -p ${path} /fastdfs
76- curl -o ${path} /fastdfs.zip https ://raw.githubusercontent.com/dunwu/images/dev /soft/fdfs/fastdfs.zip
76+ curl -o ${path} /fastdfs.zip http ://dunwu.test.upcdn.net /soft/fdfs/fastdfs.zip
7777if [[ ! -f ${path} /fastdfs.zip ]]; then
7878 printf " ${RED} >>>>>>>>> install fastdfs failed,exit. ${RESET} \n"
7979fi
@@ -84,7 +84,7 @@ chmod +x -R ${path}/fastdfs/*.sh
8484
8585printf " ${GREEN} >>>>>>>>> install fastdfs-nginx-module${RESET} \n"
8686mkdir -p ${path} /fastdfs-nginx-module
87- curl -o ${path} /fastdfs-nginx-module.zip https ://raw.githubusercontent.com/dunwu/images/dev /soft/fdfs/fastdfs-nginx-module.zip
87+ curl -o ${path} /fastdfs-nginx-module.zip http ://dunwu.test.upcdn.net /soft/fdfs/fastdfs-nginx-module.zip
8888if [[ ! -f ${path} /fastdfs-nginx-module.zip ]]; then
8989 printf " ${RED} >>>>>>>>> install fastdfs-nginx-module failed,exit. ${RESET} \n"
9090fi
Original file line number Diff line number Diff line change 11---
22home : true
3- heroImage : https://raw.githubusercontent.com/dunwu/images/dev /common/dunwu-logo.png
3+ heroImage : https://raw.githubusercontent.com/dunwu/images/master /common/dunwu-logo.png
44heroText : LINUX-TUTORIAL
55tagline : 📚 linux-tutorial 是一个 Linux 教程。
66actionLink : /
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Docker 将应用程序与该程序的依赖,打包在一个文件里面。运
3131- ** 更轻松的迁移** - 由于 ` Docker ` 确保了执行环境的一致性,使得应用的迁移更加容易。` Docker ` 可以在很多平台上运行,无论是物理机、虚拟机、公有云、私有云,甚至是笔记本,其运行结果是一致的。因此用户可以很轻易的将在一个平台上运行的应用,迁移到另一个平台上,而不用担心运行环境的变化导致应用无法正常运行的情况。
3232- ** 更轻松的维护和扩展** - ` Docker ` 使用的分层存储以及镜像的技术,使得应用重复部分的复用更为容易,也使得应用的维护更新更加简单,基于基础镜像进一步扩展镜像也变得非常简单。此外,` Docker ` 团队同各个开源项目团队一起维护了一大批高质量的 [ 官方镜像] ( https://hub.docker.com/search/?type=image&image_filter=official ) ,既可以直接在生产环境使用,又可以作为基础进一步定制,大大的降低了应用服务的镜像制作成本。
3333
34- ![ img] ( https://raw.githubusercontent.com/dunwu/images/dev /cs/os/docker/containers-and-vm.png )
34+ ![ img] ( https://raw.githubusercontent.com/dunwu/images/master /cs/os/docker/containers-and-vm.png )
3535
3636### Docker 的主要用途
3737
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ Kubernetes 主要由以下几个核心组件组成:
4949
5050K8S 包含若干抽象用来表示系统状态,包括:已部署的容器化应用和负载、与它们相关的网络和磁盘资源以及有关集群正在运行的其他操作的信息。
5151
52- ![ img] ( https://raw.githubusercontent.com/dunwu/images/dev /cs/os/kubernetes/pod.svg )
52+ ![ img] ( https://raw.githubusercontent.com/dunwu/images/master /cs/os/kubernetes/pod.svg )
5353
5454- ` Pod ` - K8S 使用 Pod 来管理容器,每个 Pod 可以包含一个或多个紧密关联的容器。Pod 是一组紧密关联的容器集合,它们共享 PID、IPC、Network 和 UTS namespace,是 K8S 调度的基本单位。Pod 内的多个容器共享网络和文件系统,可以通过进程间通信和文件共享这种简单高效的方式组合完成服务。
5555- ` Node ` - Node 是 Pod 真正运行的主机,可以是物理机,也可以是虚拟机。为了管理 Pod,每个 Node 节点上至少要运行 container runtime(比如 docker 或者 rkt)、` kubelet ` 和 ` kube-proxy ` 服务。
Original file line number Diff line number Diff line change 88
99linux 目录结构是树形结构,其根目录是 ` / ` 。一张思维导图说明各个目录的作用:
1010
11- ![ img] ( https://raw.githubusercontent.com/dunwu/images/dev /cs/os/linux/linux-folders.png )
11+ ![ img] ( https://raw.githubusercontent.com/dunwu/images/master /cs/os/linux/linux-folders.png )
1212
1313### 1.2. Linux 文件属性
1414
@@ -35,7 +35,7 @@ dr-xr-xr-x 4 root root 4096 Apr 19 2012 boot
3535
3636每个文件的属性由左边第一部分的 10 个字符来确定(如下图)。
3737
38- ![ img] ( https://raw.githubusercontent.com/dunwu/images/dev /snap/20180920180927171909.png )
38+ ![ img] ( https://raw.githubusercontent.com/dunwu/images/master /snap/20180920180927171909.png )
3939
4040从左至右用 0-9 这些数字来表示。
4141
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ crontab 要执行的定时任务都被保存在 `/etc/crontab` 文件中。
6565
6666crontab 的文件格式如下:
6767
68- ![ img] ( https://raw.githubusercontent.com/dunwu/images/dev /snap/20200211113339.png )
68+ ![ img] ( https://raw.githubusercontent.com/dunwu/images/master /snap/20200211113339.png )
6969
7070#### 标准字段
7171
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ Windows:
149149
150150访问:` \\<你的ip>\<你的共享路径> ` :
151151
152- ![ img] ( https://raw.githubusercontent.com/dunwu/images/dev /snap/20180920180928161334.png )
152+ ![ img] ( https://raw.githubusercontent.com/dunwu/images/master /snap/20180920180928161334.png )
153153
154154Mac:
155155
Original file line number Diff line number Diff line change @@ -308,33 +308,33 @@ Vim 是从 vi 发展出来的一个文本编辑器。代码补完、编译及错
308308
309309此外,[这里](http://blog.ngedit.com/vi-vim-cheat-sheet-sch.gif)还有简体中文版。
310310
311- 
311+ 
312312
313313### 3.2. 入门版
314314
315315基本操作的入门版。[原版出处](https://github.com/ahrencode/Miscellaneous)还有 keynote 版本可供 DIY 以及其他相关有用的 cheatsheet。
316316
317- 
317+ 
318318
319319### 3.3. 进阶版
320320
321321下图是 300DPI 的超清大图,另外[查看原文](http://michael.peopleofhonoronly.com/vim/)还有更多版本:黑白,低分辨率,色盲等
322322
323- 
323+ 
324324
325325### 3.4. 增强版
326326
327327下图是一个更新时间较新的现代版,含有的信息也更丰富。[原文链接](http://vimcheatsheet.com/)
328328
329- 
329+ 
330330
331331### 3.5. 文字版
332332
333333[原文链接](http://tnerual.eriogerg.free.fr/vimqrc.pdf)
334334
335- 
335+ 
336336
337- 
337+ 
338338
339339## 4. 资料
340340
Original file line number Diff line number Diff line change 88
99进入官方下载地址:https://about.gitlab.com/install/ ,如下图,选择合适的版本。
1010
11- ![ img] ( https://raw.githubusercontent.com/dunwu/images/dev /snap/20190129155838.png )
11+ ![ img] ( https://raw.githubusercontent.com/dunwu/images/master /snap/20190129155838.png )
1212
1313以 CentOS7 为例:
1414
@@ -70,7 +70,7 @@ docker run -d \
7070 gitlab/gitlab-ce
7171```
7272
73- ![ img] ( https://raw.githubusercontent.com/dunwu/images/dev /snap/20190131150515.png )
73+ ![ img] ( https://raw.githubusercontent.com/dunwu/images/master /snap/20190131150515.png )
7474
7575### 自签名证书
7676
@@ -175,7 +175,7 @@ sudo gitlab-runner register
175175
176176URL 和令牌信息在 Gitlab 的 Runner 管理页面获取:
177177
178- ![ img] ( https://raw.githubusercontent.com/dunwu/images/dev /snap/20190129163100.png )
178+ ![ img] ( https://raw.githubusercontent.com/dunwu/images/master /snap/20190129163100.png )
179179
180180```
181181Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com )
@@ -292,11 +292,11 @@ sudo gitlab-ctl restart
292292
293293### 创建项目
294294
295- ![ img] ( https://raw.githubusercontent.com/dunwu/images/dev /snap/20190131150658.png )
295+ ![ img] ( https://raw.githubusercontent.com/dunwu/images/master /snap/20190131150658.png )
296296
297297输入项目信息,点击 Create project 按钮,在 Gitlab 创建项目。
298298
299- ![ img] ( https://raw.githubusercontent.com/dunwu/images/dev /snap/20190131150759.png )
299+ ![ img] ( https://raw.githubusercontent.com/dunwu/images/master /snap/20190131150759.png )
300300
301301### 克隆项目到本地
302302
You can’t perform that action at this time.
0 commit comments