Skip to content

Commit 41d9edf

Browse files
committed
chore: doc
1 parent ba05614 commit 41d9edf

File tree

7 files changed

+88
-14
lines changed

7 files changed

+88
-14
lines changed

blog/collect/ fragment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ date: 2023-12-11
1515

1616
- [Google diff-match-patch](https://github.com/google/diff-match-patch.git) 比对框架
1717
- [dumi](https://d.umijs.org/) 为组件研发而生的静态站点框架
18-
18+
- [mdit-plugins](https://mdit-plugins.github.io/zh/) markdown-it插件
1919

2020
## 代码保护
2121

blog/collect/network.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ icon: 'sitemap'
118118
- [MDN](https://developer.mozilla.org/en-US/)
119119
- [Vue](https://cn.vuejs.org/)
120120
- [React](https://react.dev/)
121+
- [ui-libs](https://ui-libs.vercel.app/)
121122

122123
## 算法
123124

blog/front/node.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,12 @@ npx的作用(默认):
112112
## 多版本管理
113113

114114
- :rocket: [fnm](https://github.com/Schniz/fnm) fnm是一个使用rust构建的一个nodejs版本管理工具,简单、快速、跨平台。
115-
- [nvm](https://github.com/nvm-sh/nvm)
115+
- [nvm](https://github.com/nvm-sh/nvm)
116+
117+
118+
## 包管理
119+
120+
- [ni](https://github.com/antfu/ni)
121+
- [nrm](https://github.com/Pana/nrm)
122+
123+
##

blog/ops/virtualization/docker/README.md

Lines changed: 61 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
date: 2021-08-25
33
---
4+
45
# Docker
56

67
## 安装
@@ -17,7 +18,6 @@ brew install --cask --appdir=/Applications docker
1718

1819
[Install Docker Desktop on Mac](https://docs.docker.com/desktop/mac/install/)
1920

20-
2121
### 镜像加速
2222

2323
打开docker的设置,修改Docker Engine中registry-mirrors地址
@@ -48,11 +48,8 @@ brew install --cask --appdir=/Applications docker
4848

4949
- 科大镜像 [https://docker.mirrors.ustc.edu.cn/](https://docker.mirrors.ustc.edu.cn/)
5050

51-
52-
5351
## 命令
5452

55-
5653
### docker ps
5754

5855
[docker ps](https://docs.docker.com/engine/reference/commandline/ps/)
@@ -61,7 +58,6 @@ brew install --cask --appdir=/Applications docker
6158

6259
docker ps --filter ancestor=hello-world -a
6360

64-
6561
### docker container
6662

6763
[docker container](https://docs.docker.com/engine/reference/commandline/container/)
@@ -72,16 +68,18 @@ docker ps --filter ancestor=hello-world -a
7268

7369
docker container rm $(docker ps --filter ancestor=hello-world -qa)
7470

75-
7671
### docker exec
7772

7873
[docker exec](https://docs.docker.com/engine/reference/commandline/exec/)
7974

8075
以交互方式进入容器
8176

82-
docker exec -it containerId command
77+
docker exec -it containerId command
8378

84-
command与镜像构建有关,可以查看镜像的构建描述。比如[redis:alpine3.14](https://hub.docker.com/layers/redis/library/redis/alpine3.14/images/sha256-6edcbc387edd866a080491c015c029b458f49678152dfe364ad50383620c3215?context=explore)这个镜像就是基于`/bin/sh`,那么就不能像进入[ubuntu](https://hub.docker.com/layers/ubuntu/library/ubuntu/latest/images/sha256-0f745a413c7886d6dc4f1e6a1d45a5cf5a9a85f72e6243b307e17d67e2e1fe10?context=explore)容器那样使用`/bin/bash`
79+
command与镜像构建有关,可以查看镜像的构建描述。比如[redis:alpine3.14](https://hub.docker.com/layers/redis/library/redis/alpine3.14/images/sha256-6edcbc387edd866a080491c015c029b458f49678152dfe364ad50383620c3215?context=explore)
80+
这个镜像就是基于`/bin/sh`
81+
,那么就不能像进入[ubuntu](https://hub.docker.com/layers/ubuntu/library/ubuntu/latest/images/sha256-0f745a413c7886d6dc4f1e6a1d45a5cf5a9a85f72e6243b307e17d67e2e1fe10?context=explore)
82+
容器那样使用`/bin/bash`
8583

8684
### 日志
8785

@@ -95,18 +93,17 @@ docker logs -f --tail 100 66c017d8fc53
9593

9694
docker commit some-rabbit some-rabbit_new
9795

98-
9996
## 磁盘清理
10097

101-
> 参考:[https://betterprogramming.pub/docker-tips-clean-up-your-local-machine-35f370a01a78](https://betterprogramming.pub/docker-tips-clean-up-your-local-machine-35f370a01a78)
98+
>
99+
参考:[https://betterprogramming.pub/docker-tips-clean-up-your-local-machine-35f370a01a78](https://betterprogramming.pub/docker-tips-clean-up-your-local-machine-35f370a01a78)
102100

103101
```shell
104102
docker system df
105103
```
106104

107105
![执行结果](images/img_2.png)
108106

109-
110107
- Images:所有镜像占用的空间。
111108
- Containers:运行的容器占用的空间,表示每个容器的读写层的空间。
112109
- Local Volumes:容器挂载本地数据卷的空间。
@@ -122,4 +119,56 @@ docker builder prune
122119

123120
```shell
124121
docker system prune
125-
```
122+
```
123+
124+
## 安装Nginx
125+
126+
- 创建好要挂载的目录mydata
127+
128+
```shell
129+
mkdir -p <mydata>/nginx/nginx.conf
130+
mkdir -p <mydata>/nginx/html
131+
mkdir -p <mydata>/nginx/log
132+
````
133+
134+
```text
135+
// nginx.conf
136+
worker_processes 1;
137+
138+
events {
139+
worker_connections 1024;
140+
}
141+
142+
http {
143+
include mime.types;
144+
default_type application/octet-stream;
145+
sendfile on;
146+
keepalive_timeout 65;
147+
148+
server {
149+
listen 80;
150+
server_name localhost;
151+
152+
location / {
153+
root /home/ruoyi/projects/ruoyi-ui;
154+
try_files $uri $uri/ /index.html;
155+
index index.html index.htm;
156+
}
157+
158+
error_page 500 502 503 504 /50x.html;
159+
location = /50x.html {
160+
root html;
161+
}
162+
}
163+
}
164+
```
165+
166+
mydata/nginx/html内创建一个默认的index.html
167+
168+
169+
- 运行
170+
171+
```shell
172+
docker run -d -p 80:80 --name nginx --privileged=true -v <mydata>/nginx/conf/nginx.conf:/etc/nginx/nginx.conf -v <mydata>/nginx/html:/etc/nginx/html -v <mydata>/nginx/log:/var/log/nginx 镜像ID/名称
173+
```
174+

blog/other/intellij/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,19 @@ tasks {
203203

204204
生成一个可以分享、安装的压缩文件"build/distributions/xxxxx.zip"
205205

206+
## 验证
207+
208+
runPluginVerifier
209+
206210
## 发布
207211

208212
[publishing-plugin
209213
](https://plugins.jetbrains.com/docs/intellij/publishing-plugin.html)
214+
215+
[uploading-a-new-plugin](https://plugins.jetbrains.com/docs/marketplace/uploading-a-new-plugin.html)
216+
217+
[https://plugins.jetbrains.com/idea](https://plugins.jetbrains.com/idea)
218+
210219
## 版本兼容
211220

212221
默认内容一般包含:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"docs:update-package": "pnpm dlx vp-update"
1616
},
1717
"dependencies": {
18+
"markdown-it-container": "^4.0.0",
1819
"xmind-embed-viewer": "^1.2.0"
1920
}
2021
}

pnpm-lock.yaml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)