From 9af19b2e1f53eacfb87b81f9b50be1e7b19f990b Mon Sep 17 00:00:00 2001 From: horaoen Date: Fri, 29 Nov 2024 17:54:32 +0800 Subject: [PATCH] update --- content/posts/dm-migrate.md | 2 +- content/posts/linux.md | 3 +++ content/posts/nginx.md | 10 +++++++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/content/posts/dm-migrate.md b/content/posts/dm-migrate.md index 6187a76..b457942 100644 --- a/content/posts/dm-migrate.md +++ b/content/posts/dm-migrate.md @@ -21,7 +21,7 @@ date = "2024-10-28" # 数据迁移 1. [迁移问题](https://eco.dameng.com/document/dm/zh-cn/faq/faq-mysql-dm8-migrate.html) 2. [迁移步骤](https://eco.dameng.com/document/dm/zh-cn/start/tool-dm-migrate) - +3. source -> start # 数据校验 ## 比对索引 1. mysql diff --git a/content/posts/linux.md b/content/posts/linux.md index 175a7b3..256fe8c 100644 --- a/content/posts/linux.md +++ b/content/posts/linux.md @@ -6,4 +6,7 @@ date = "2024-10-15" ```sh free -h df -h +# 压缩 +tar -cvf target_name file_name +tar -xvf target_name file_name ``` \ No newline at end of file diff --git a/content/posts/nginx.md b/content/posts/nginx.md index c883d31..a9b98cf 100644 --- a/content/posts/nginx.md +++ b/content/posts/nginx.md @@ -12,7 +12,6 @@ server { log_not_found off; } - add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self' *;"; @@ -33,4 +32,13 @@ server { ```conf nginx -s reload +``` + +### history模式路由访问不到 +```conf +location / { + ... + try_files $uri $uri/ /index.html; + ... +} ``` \ No newline at end of file