@@ -253,8 +253,8 @@ sudo chmod 775 /etc/nginx/ssl
253253
254254## 📁 文件位置
255255
256- - ** PID 文件** :` ~/.cert-deploy .pid ` (用户主目录)
257- - ** 日志文件** :与 ` config.yaml ` 同目录下的 ` cert-deploy .log`
256+ - ** PID 文件** :` ~/.anssl .pid ` (用户主目录)
257+ - ** 日志文件** :与 ` config.yaml ` 同目录下的 ` anssl .log`
258258- ** 证书文件** :
259259 - 下载的 zip 文件:` ./certs/{domain}_certificates.zip `
260260 - 解压后的证书:` {ssl.path}/{domain}_certificates/ `
@@ -272,7 +272,7 @@ $ ./anssl daemon -c config.yaml
272272
273273``` bash
274274$ ./anssl status
275- PID文件路径: /Users/username/.cert-deploy .pid
275+ PID文件路径: /Users/username/.anssl .pid
276276证书部署守护进程正在运行 (PID: 12345)
277277```
278278
@@ -381,8 +381,8 @@ make build-compress
381381
3823821 . 检查配置文件是否正确:` cat config.yaml `
3833832 . 使用前台模式查看错误:` ./anssl start -c config.yaml `
384- 3 . 检查 PID 文件是否被占用:` cat ~/.cert-deploy .pid `
385- 4 . 如果进程异常退出,删除 PID 文件后重试:` rm ~/.cert-deploy .pid `
384+ 3 . 检查 PID 文件是否被占用:` cat ~/.anssl .pid `
385+ 4 . 如果进程异常退出,删除 PID 文件后重试:` rm ~/.anssl .pid `
386386
387387### Nginx 未安装
388388
@@ -465,15 +465,15 @@ MIT License
465465
466466``` bash
467467# 创建 systemd 服务文件
468- sudo tee /etc/systemd/system/cert-deploy .service > /dev/null << EOF
468+ sudo tee /etc/systemd/system/anssl .service > /dev/null << EOF
469469[Unit]
470470Description=Certificate Deploy Service
471471After=network.target
472472
473473[Service]
474474Type=simple
475475User=root
476- ExecStart=/usr/local/bin/anssl start -c /etc/cert-deploy /config.yaml
476+ ExecStart=/usr/local/bin/anssl start -c /etc/anssl /config.yaml
477477Restart=always
478478RestartSec=10
479479
@@ -483,11 +483,11 @@ EOF
483483
484484# 启用并启动服务
485485sudo systemctl daemon-reload
486- sudo systemctl enable cert-deploy
487- sudo systemctl start cert-deploy
486+ sudo systemctl enable anssl
487+ sudo systemctl start anssl
488488
489489# 查看服务状态
490- sudo systemctl status cert-deploy
490+ sudo systemctl status anssl
491491```
492492
493493### 5. 如何验证证书部署成功?
0 commit comments