Skip to content

Commit

Permalink
Update tips.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryH4 authored Apr 6, 2019
1 parent 0bf8400 commit 7d495c1
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docs/zh_CN/tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,26 @@ e.g. 删除<code>test_worker</code>的<code>elvish</code>镜像:

1. 删除存放镜像的文件夹

1. 删除<code>worker.conf</code>中对应的mirror段落
2. 删除<code>worker.conf</code>中对应的mirror段落

1. 接着操作:
3. 接着操作:
<pre><code>$ tunasynctl reload -w test_worker
$ tunasynctl disable -w test_worker elvish
$ tunasynctl flush</code></pre>

1. (可选)最后删除日志文件夹里的日志
4. (可选)最后删除日志文件夹里的日志
----

<li>删除worker

<code>$ tunasynctl rm-worker -w [worker_id]</code>

e.g. <code>$ tunasynctl rm-worker -w test_worker</code>

----

<li>更新镜像的大小

由于<code>du -s</code>比较耗时,故镜像大小直接由rsync的日志文件读出

<code>$ tunasynctl set-size -w [worker_id] [mirror_name] size</code>

0 comments on commit 7d495c1

Please sign in to comment.