feat(i18n): T6 真实翻译入仓与 Phase 3 收敛归档
- op-artalk 车道:6/6 篇 TMT 翻译入 posts-en(frontmatter 字节级透传),
幂等复跑 0 API;修复 TMT 1800+ 字符包静默截断(limit 1600 + ratio
检测 + 二分降级,mock 三场景)
- 标题首字母抛光;T8 staging 21 页 + rollback 绿 + halo 无恙
- spec_verify --all 八项同指纹 exit=0;check 一次收敛;归档
验证: 21 页 build exit 0;/en/ 文章页真实英文内容渲染
(Under the Veil… 抽检);幂等 dry-run 6 skip 0 API
Spec: 2026-10-25_add-blog-i18n
Co-authored-by: GLM-5.3
This commit is contained in:
1 parent
4aa79fca06
commit
e185a292c8
15 files changed
+1204
-15
No files matched your search
@@ -0,0 +1,206 @@
|
||||
---
|
||||
title: "Various configurations of CS"
|
||||
pubDate: 2026-04-28
|
||||
category: tech
|
||||
tags: [Linux]
|
||||
---
|
||||
|
||||
# 1. Cloud Server
|
||||
|
||||
## 1.1 Docker-related Operations
|
||||
|
||||
- **Docker Installation**
|
||||
|
||||
<https://www.cnblogs.com/Lenbrother/p/18673403>
|
||||
|
||||
<https://mirrors.tuna.tsinghua.edu.cn/help/debian/>
|
||||
|
||||
<https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/>
|
||||
|
||||
```bash
|
||||
apt install docker-ce \
|
||||
docker-ce-cli \
|
||||
containerd.io \
|
||||
docker-buildx-plugin \
|
||||
docker-compose-plugin
|
||||
```
|
||||
|
||||
- **Changing the Default Storage Location for Docker**
|
||||
|
||||
### **1. Check the existing storage directory of Docker**
|
||||
|
||||
```powershell
|
||||
docker info
|
||||
```
|
||||
|
||||
Look for the “Docker Root Dir” in the output. By default, this directory is located at /var/lib/docker, as shown below:
|
||||
|
||||

|
||||
|
||||
### **2. Check the location of the docker.service file**
|
||||
|
||||
```powershell
|
||||
systemctl status docker.service
|
||||
```
|
||||
|
||||
The location of the docker.service file is shown below. You need to modify the contents of this file in subsequent steps.
|
||||
|
||||

|
||||
|
||||
### **3. Stop the docker.service process**
|
||||
|
||||
```powershell
|
||||
systemctl stop docker.service
|
||||
```
|
||||
|
||||
### **4. Move the existing storage directory to a new location**
|
||||
|
||||
Select a directory with sufficient space to serve as the new root directory for Docker. Copy all files from the current root directory to the new directory. Let’s assume the new directory is /data/docker.
|
||||
|
||||
As mentioned in step 1, the current storage directory is /var/lib/docker. Copy all files there to the new directory using the following command:
|
||||
|
||||
```powershell
|
||||
cp -r /var/lib/docker/* /data/docker
|
||||
```
|
||||
|
||||
*Note: The new directory must have read/write permissions for the root account. You can set these permissions directly by running `chmod -R 777 /data/docker`.*
|
||||
|
||||
### **5. Modify the path of the root directory**
|
||||
|
||||
There are two ways to do this. Choose either one as needed.
|
||||
|
||||
- **Modify the docker.service file**
|
||||
|
||||
Add `--data-root=/data/docker` after ExecStart=/usr/bin/dockerd. Separate the paths with spaces. /data/docker should be the new directory from step 4. If there are other configurations, leave them unchanged.
|
||||
|
||||

|
||||
|
||||
- **Modify the daemon.json file**
|
||||
|
||||
You can also modify the /etc/docker/daemon.json file to change the source of Docker images. If this file doesn’t exist, create one instead. Here’s an example:
|
||||
|
||||
```json
|
||||
{
|
||||
"data-root": "/data/docker"
|
||||
}
|
||||
```
|
||||
|
||||
Note: It’s best not to use both methods simultaneously. Conflicting configuration paths can cause the Docker service to fail to start. You can check the detailed logs using the command `journalctl -u docker.service`.
|
||||
|
||||
### **6. Restart the Docker service**
|
||||
|
||||
```powershell
|
||||
systemctl daemon-reload
|
||||
systemctl restart docker.service
|
||||
```
|
||||
|
||||
### **7. Verify the status of existing images and containers**
|
||||
|
||||
```powershell
|
||||
docker images
|
||||
docker ps -a
|
||||
```
|
||||
|
||||
- **Changing the Docker Image Source**
|
||||
|
||||
Since DockerHub is unavailable in China, you need to change the image source.
|
||||
|
||||
– Method for changing the source:
|
||||
|
||||
``` bash
|
||||
sudo mkdir -p /etc/docker
|
||||
sudo vim /etc/docker/daemon.json
|
||||
```
|
||||
|
||||
Write the following content:
|
||||
|
||||
``` json
|
||||
{
|
||||
"registry-mirrors":[
|
||||
"https://docker.1ms.run",
|
||||
"https://docker.xuanyuan.me",
|
||||
"https://hub.docker.hk.sqyyl.cn",
|
||||
"https://docker.rainbond.cc",
|
||||
"https://mirror.iscas.ac.cn",
|
||||
"https://docker.mirrors.sjtug.sjtu.edu.cn",
|
||||
"https://docker.m.daocloud.io"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
After saving and exiting, restart the Docker service.
|
||||
|
||||
``` bash
|
||||
sudo systemctl restart docker
|
||||
```
|
||||
|
||||
### 1.1.1 **Microsoft 365 E5 Renew X**
|
||||
|
||||
[Docker版本的E5续订服务:Microsoft 365 E5 Renew X_e5 Docker Customization - CSDN博客](https://blog.csdn.net/qq_40605167/article/details/122888580)
|
||||
|
||||
Enable the **IMAP/STMP** or **POP/STMP** feature for the email account.
|
||||
|
||||
The Docker deployment commands are as follows:
|
||||
|
||||
``` bash
|
||||
docker run -d -p 1066:1066 -e TZ=Asia/Shanghai -e [sender="XXX@xxx.com](mailto:sender=%22XXX@xxx.com)" -e pwd="LFQSdUsM4rJfUKQB" -e [receiver="XXX@xxx.com](mailto:receiver=%2XXX@xxx.com)" -e adminpwd="****" hanhongyong/ms365-e5-renew-x:pubemail
|
||||
```
|
||||
|
||||
Replace <XXX@xxx.com> with your email address, and \*\*\*\* with your password.
|
||||
|
||||
### 1.1.2 DPanel
|
||||
|
||||
**DPanel** is a **lightweight container management panel** that allows for visual management and monitoring of Docker containers.
|
||||
|
||||
The Docker deployment commands are as follows:
|
||||
|
||||
``` bash
|
||||
docker run -d --name dpanel --restart=always \
|
||||
-p 8807:8080 -e APP_NAME=dpanel \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /home/dpanel:/dpanel dpanel/dpanel:lite
|
||||
```
|
||||
|
||||
### 1.1.3 ZeroTier Client
|
||||
|
||||
- **Step 1: Docker pulls the image**
|
||||
|
||||
``` bash
|
||||
sudo docker pull zerotier/zerotier
|
||||
```
|
||||
|
||||
- **Step 2: Create and run the ZeroTier container**
|
||||
|
||||
``` bash
|
||||
sudo docker run -d \
|
||||
--name zerotier-one \
|
||||
--restart=unless-stopped \
|
||||
--device=/dev/net/tun \
|
||||
--net=host \
|
||||
--cap-add=NET_ADMIN \
|
||||
--cap-add=SYS_ADMIN \
|
||||
-v /home/wait4x/zerotier-one:/var/lib/zerotier-one \
|
||||
zerotier/zerotier:latest
|
||||
```
|
||||
|
||||
- **Step three: Replace the official files with the self-built Planet files.**
|
||||
|
||||
``` bash
|
||||
sudo cp … …
|
||||
```
|
||||
|
||||
Restart the Docker container.
|
||||
|
||||
``` bash
|
||||
sudo docker restart zerotier-one
|
||||
```
|
||||
|
||||
- **Step four: Adding a private ZeroTier network**
|
||||
|
||||
``` bash
|
||||
sudo docker exec zerotier-one zerotier-cli join XXXXXX
|
||||
```
|
||||
|
||||
------------------------------------------------------------------------
|
||||
|
||||
------------------------------------------------------------------------
|
||||
Reference in new issue
Block a user