From 67040ed327077f1f774e9183647667879844af12 Mon Sep 17 00:00:00 2001 From: huggy Date: Mon, 25 Apr 2022 12:34:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20readme=20#14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- README.md | 10 ++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 32bfc82..692405d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules config.js *test* -*tmp* \ No newline at end of file +*tmp* +.DS_Store diff --git a/README.md b/README.md index b2a5fff..7b2309d 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ ab-bt-ban-timeout=86400 ``` [Unit] Description=aria2 ban unwelcome clients via ipset -After=network.target +After=network.target aria2.service [Service] Type=simple @@ -91,17 +91,15 @@ User=root Restart=on-failure RestartSec=5s -# 这里的路径自己改改 +# 这里的路径自己改改,默认应该是这个 ExecStart=/usr/local/bin/aria2b [Install] WantedBy=multi-user.target ``` -路径: -> /usr/lib/systemd/system/aria2b.service - +命令: ``` -systemctl daemon-reload +systemctl edit aria2b --full --force systemctl enable aria2b.service --now ``` ### pm2