新增:《Docker 安装 MinIO 详细步骤》(将 VitePress 版本升级为 v1.0.0-alpha.29)

This commit is contained in:
2022-11-16 21:22:32 +08:00
parent bedd34976d
commit db7765a2ac
16 changed files with 143 additions and 17 deletions

View File

@@ -72,6 +72,7 @@ pnpm build
- [x] 更多细节优化:敬请发现 - [x] 更多细节优化:敬请发现
- [x] 文章内图片增加圆角样式优化([#56](https://github.com/Charles7c/charles7c.github.io/issues/56) - [x] 文章内图片增加圆角样式优化([#56](https://github.com/Charles7c/charles7c.github.io/issues/56)
- [x] 浏览器滚动条样式优化(支持 Firfox、谷歌系浏览器[#69](https://github.com/Charles7c/charles7c.github.io/pull/69) - [x] 浏览器滚动条样式优化(支持 Firfox、谷歌系浏览器[#69](https://github.com/Charles7c/charles7c.github.io/pull/69)
- [x] 侧边栏分组中的文章列表增加序号显示
- [x] ...... - [x] ......

View File

@@ -65,7 +65,7 @@ TRUNCATE TABLE 表名;
CONCAT('TRUNCATE TABLE ', TABLE_NAME, ';') CONCAT('TRUNCATE TABLE ', TABLE_NAME, ';')
FROM FROM
information_schema.TABLES information_schema.TABLES
WHERE TABLES_SCHEMA = '数据库名'; WHERE TABLE_SCHEMA = '数据库名';
``` ```
2. 将执行结果复制,直接执行即可 2. 将执行结果复制,直接执行即可
@@ -87,7 +87,7 @@ DROP TABLE 表名;
CONCAT('DROP TABLE IF EXISTS ', TABLE_NAME, ';') CONCAT('DROP TABLE IF EXISTS ', TABLE_NAME, ';')
FROM FROM
information_schema.TABLES information_schema.TABLES
WHERE TABLES_SCHEMA = '数据库名'; WHERE TABLE_SCHEMA = '数据库名';
``` ```
2. 将执行结果复制,直接执行即可 2. 将执行结果复制,直接执行即可

View File

@@ -0,0 +1,125 @@
---
title: Docker 安装 MinIO 详细步骤
author: 查尔斯
date: 2022/10/28 22:37
categories:
- 杂碎逆袭史
tags:
- MinIO
- Docker
- 容器
showComment: false
---
# Docker 安装 MinIO 详细步骤
::: tip 笔者说
笔者下面的步骤及配置是基于指定版本的实践,大多数程序大多数情况下在相差不大的版本时可以直接参考。(当然了,即使是非 Docker 方式安装程序也是一样道理)
:::
## 拉取镜像
::: warning 笔者说
拉取镜像时需要明确镜像版本Tag
:::
不指定版本Tag就拉取镜像那拉取下来的镜像版本Tag默认是 `latest`(最新的)。`latest` 会跟随 Docker Registry 中的记录变化,现在拉取下来的 `latest` 是 x1 版本,但隔了一段时间后你在其他机器上再拉取 `latest` 可能就是 x2 版本了。
变化的版本,不利于生产环境部署的稳定。无论是后续在其他环境部署还是扩容集群等场景均要求根据架构要求指定好版本。
```shell
docker pull minio/minio:RELEASE.2022-08-02T23-59-16Z.fips
```
## 运行容器
::: warning 笔者说
**下方的配置,切记要根据个人实际情况来修改。**
:::
- 容器的名称
- 镜像名称:版本
- 是否设置自启动?
- 是否端口映射?
- 环境变量配置
- 映射的话映射到宿主机哪个端口?
- 是否挂载卷?
- 挂载的话要挂载宿主机哪个目录?
- ......
- 等自定义配置
```shell
# MINIO_ACCESS_KEY用户名默认为 minioadmin
# MINIO_SECRET_KEY用户密码默认为 minioadmin
# MINIO_COMPRESS开启压缩 on 开启 off 关闭
# MINIO_COMPRESS_EXTENSIONS扩展名 .pdf,.doc 为空 所有类型均压缩
# MINIO_COMPRESS_MIME_TYPESmime 类型 application/pdf 为空 所有类型均压缩
# MINIO_SERVER_URLHTTPS 需要指定服务域名例如https://xxx.com:9000
# MINIO_BROWSER_REDIRECT_URLHTTPS 需要指定服务域名例如https://xxx.com:9001
docker run -d \
--name minio minio/minio:RELEASE.2022-08-02T23-59-16Z.fips \
--restart=always \
-e TZ="Asia/Shanghai" \
-e MINIO_ACCESS_KEY="minioadmin" \
-e MINIO_SECRET_KEY="minioadmin" \
-e MINIO_COMPRESS="off" \
-e MINIO_COMPRESS_EXTENSIONS="" \
-e MINIO_COMPRESS_MIME_TYPES="" \
-p 9000:9000 -p 9001:9001 \
-v /opt/disk/docker/volumes/minio/conf:/root/.minio \
-v /opt/disk/docker/volumes/minio/data:/data \
server --address ':9000' --console-address ':9001' /data \
# 使用该参数,容器内的 root 用户才拥有真正的 root 权限
--privileged=true
```
## 验证
服务器开放好相应端口或设置好安全组规则后,访问 `http://宿主机IP:映射的端口` 例如按上方配置那就是http://宿主机IP:9001即可看到 MinIO 管理界面。
![202210282235156](../../../../../public/img/2022/10/28/202210282235156.png)
输入你刚才指定的用户名、密码,登录进来后,可以看到当前一个 Bucket 也没有,可以点击右侧的 [Create Bucket] 来创建。
![202210282236211](../../../../../public/img/2022/10/28/202210282236211.png)
## Docker Compose脚本
如果你是用的 docker-compose 来安装,下方附上相应 docker-compose.yml 脚本内容。
```yaml
version: '3'
services:
minio:
container_name: minio
image: minio/minio:RELEASE.2022-08-02T23-59-16Z.fips
restart: always
environment:
TZ: Asia/Shanghai
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
# HTTPS 需要指定域名
#MINIO_SERVER_URL: 'https://xxx.com:9000'
#MINIO_BROWSER_REDIRECT_URL: 'https://xxx.com:9001'
# 开启压缩 on 开启 off 关闭
MINIO_COMPRESS: 'off'
# 扩展名 .pdf,.doc 为空 所有类型均压缩
MINIO_COMPRESS_EXTENSIONS: ''
# mime 类型 application/pdf 为空 所有类型均压缩
MINIO_COMPRESS_MIME_TYPES: ''
ports:
- 9000:9000
- 9001:9001
volumes:
- /opt/disk/docker/volumes/minio/conf:/root/.minio
- /opt/disk/docker/volumes/minio/data:/data
command: server --address ':9000' --console-address ':9001' /data
privileged: true
```
编写好 docker-compose.yml 脚本后,在脚本同级目录执行下方命令即可。
```shell
docker-compose up -d
```

View File

@@ -1,20 +1,20 @@
--- ---
title: 解决 DotNET 安装完报错Couldn't find a valid ICU package installed on the system. Please install libicu using your package manager and try again title: 解决 DotNet 安装完报错Couldn't find a valid ICU package installed on the system. Please install libicu using your package manager and try again
author: 查尔斯 author: 查尔斯
date: 2022/11/06 15:35 date: 2022/11/06 15:35
categories: categories:
- Bug万象集 - Bug万象集
tags: tags:
- DotNET - DotNet
- Linux - Linux
- CentOS - CentOS
--- ---
# 解决 DotNET 安装完报错Couldn't find a valid ICU package installed on the system. Please install libicu using your package manager and try again # 解决 DotNet 安装完报错Couldn't find a valid ICU package installed on the system. Please install libicu using your package manager and try again
## 问题描述 ## 问题描述
**C** 今天,笔者在一台 CentOS 7.9 服务器上手动安装完 DotNET 6.0.401 并配置好了环境变量之后,照例想查看一下是否安装成功。 **C** 今天,笔者在一台 CentOS 7.9 服务器上手动安装完 DotNet 6.0.401 并配置好了环境变量之后,照例想查看一下是否安装成功。
```shell ```shell
dotnet --version dotnet --version

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 232 KiB

After

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 KiB

After

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 KiB

After

Width:  |  Height:  |  Size: 217 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 230 KiB

After

Width:  |  Height:  |  Size: 229 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

After

Width:  |  Height:  |  Size: 187 KiB

View File

@@ -12,7 +12,7 @@
"mermaid": "9.1.7", "mermaid": "9.1.7",
"unplugin-vue-components": "^0.22.9", "unplugin-vue-components": "^0.22.9",
"vite": "^3.2.3", "vite": "^3.2.3",
"vitepress": "1.0.0-alpha.28", "vitepress": "1.0.0-alpha.29",
"vitepress-plugin-mermaid": "^2.0.8", "vitepress-plugin-mermaid": "^2.0.8",
"vitepress-plugin-search": "1.0.4-alpha.15", "vitepress-plugin-search": "1.0.4-alpha.15",
"vue": "^3.2.45" "vue": "^3.2.45"

20
pnpm-lock.yaml generated
View File

@@ -14,7 +14,7 @@ specifiers:
mermaid: 9.1.7 mermaid: 9.1.7
unplugin-vue-components: ^0.22.9 unplugin-vue-components: ^0.22.9
vite: ^3.2.3 vite: ^3.2.3
vitepress: 1.0.0-alpha.28 vitepress: 1.0.0-alpha.29
vitepress-plugin-mermaid: ^2.0.8 vitepress-plugin-mermaid: ^2.0.8
vitepress-plugin-search: 1.0.4-alpha.15 vitepress-plugin-search: 1.0.4-alpha.15
vue: ^3.2.45 vue: ^3.2.45
@@ -35,9 +35,9 @@ devDependencies:
mermaid: 9.1.7 mermaid: 9.1.7
unplugin-vue-components: 0.22.9_vue@3.2.45 unplugin-vue-components: 0.22.9_vue@3.2.45
vite: 3.2.3 vite: 3.2.3
vitepress: 1.0.0-alpha.28 vitepress: 1.0.0-alpha.29
vitepress-plugin-mermaid: 2.0.8_il6lbl67iyfe5mhg2jw555k3wi vitepress-plugin-mermaid: 2.0.8_fqt6sh5gfytk5vkeupkyaq4tpa
vitepress-plugin-search: 1.0.4-alpha.15_yvdhejjqlru5d5zazvuca7fhum vitepress-plugin-search: 1.0.4-alpha.15_dhiryhpvsjvf4rbjoue6egrkoy
vue: 3.2.45 vue: 3.2.45
packages: packages:
@@ -2745,7 +2745,7 @@ packages:
fsevents: 2.3.2 fsevents: 2.3.2
dev: true dev: true
/vitepress-plugin-mermaid/2.0.8_il6lbl67iyfe5mhg2jw555k3wi: /vitepress-plugin-mermaid/2.0.8_fqt6sh5gfytk5vkeupkyaq4tpa:
resolution: {integrity: sha512-ywWxTeg9kMv7ZPf/igCBF4ZHhWZAyRtbPnA12ICQuNK2AMp7r5IHOfnuX1EJQf8gNdsh8bcvvSvm8Ll92fdOTw==} resolution: {integrity: sha512-ywWxTeg9kMv7ZPf/igCBF4ZHhWZAyRtbPnA12ICQuNK2AMp7r5IHOfnuX1EJQf8gNdsh8bcvvSvm8Ll92fdOTw==}
peerDependencies: peerDependencies:
mermaid: ^8.0.0 || ^9.0.0 mermaid: ^8.0.0 || ^9.0.0
@@ -2753,10 +2753,10 @@ packages:
vitepress: ^0.21.6 || ^1.0.0 || ^1.0.0-alpha vitepress: ^0.21.6 || ^1.0.0 || ^1.0.0-alpha
dependencies: dependencies:
mermaid: 9.1.7 mermaid: 9.1.7
vitepress: 1.0.0-alpha.28 vitepress: 1.0.0-alpha.29
dev: true dev: true
/vitepress-plugin-search/1.0.4-alpha.15_yvdhejjqlru5d5zazvuca7fhum: /vitepress-plugin-search/1.0.4-alpha.15_dhiryhpvsjvf4rbjoue6egrkoy:
resolution: {integrity: sha512-Ef/VkhTVYlECVI0H9Ck6745UNPfYFppAqnlxVSMJXdxP2vjOZ5TYNczlTTQ2p9dh16MFw/IurbL1/GrG4nXdNw==} resolution: {integrity: sha512-Ef/VkhTVYlECVI0H9Ck6745UNPfYFppAqnlxVSMJXdxP2vjOZ5TYNczlTTQ2p9dh16MFw/IurbL1/GrG4nXdNw==}
engines: {node: ^14.13.1 || ^16.7.0 || >=18} engines: {node: ^14.13.1 || ^16.7.0 || >=18}
peerDependencies: peerDependencies:
@@ -2770,12 +2770,12 @@ packages:
flexsearch: 0.7.31 flexsearch: 0.7.31
markdown-it: 13.0.1 markdown-it: 13.0.1
vite: 3.2.3 vite: 3.2.3
vitepress: 1.0.0-alpha.28 vitepress: 1.0.0-alpha.29
vue: 3.2.45 vue: 3.2.45
dev: true dev: true
/vitepress/1.0.0-alpha.28: /vitepress/1.0.0-alpha.29:
resolution: {integrity: sha512-pvbLssDMgLUN1terajmPlFBxHSDGO4DqwexKbjFyr7LeELerVuwGrG6F2J1hxmwOlbpLd1kHXEDqGm9JX/kTDQ==} resolution: {integrity: sha512-oaRaeMLcN9M3Bxz97fFVF6Gzm3Aqtb0CijTt5TOW0XPzNPuKA0YpFnsmS97gdKmA+VztM6itRJ8K7JJuU0VS3g==}
hasBin: true hasBin: true
dependencies: dependencies:
'@docsearch/css': 3.3.0 '@docsearch/css': 3.3.0