1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 14:36:47 +00:00
文件
tunasync/docs/zh_CN/tips.md
2019-04-06 23:30:04 +08:00

895 B

  • 删除某worker的某镜像

    先确定已经给tunasynctl写好config文件~/.config/tunasync/ctl.conf

    manager_addr = "127.0.0.1"
    manager_port = 12345
    ca_cert = ""

    接着

    $ tunasynctl disable -w [worker_id] [mirror_name]
    $ tunasynctl flush
  • 热重载worker.conf

    $ tunasynctl reload -w [worker_id]


    e.g. 删除test_workerelvish镜像:

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

    2. 删除worker.conf中对应的mirror段落

    3. 接着操作:

    $ tunasynctl reload -w test_worker
    $ tunasynctl disable -w test_worker elvish
    $ tunasynctl flush
    1. (可选)最后删除日志文件夹里的日志

  • 删除worker

    $ tunasynctl rm-worker -w [worker_id]

    e.g. $ tunasynctl rm-worker -w test_worker