xunlei

command module
v0.0.0-...-d038bcb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 25 Imported by: 0

README

迅雷远程下载服务(非官方)

说明

从迅雷群晖套件中提取出来用于其他Linux设备的迅雷远程下载服务程序。已支持docker

本程序 不要在群晖的机器上运行! 不要在群晖的机器上运行! 不要在群晖的机器上运行! 群晖的机器使用迅雷官方提供的套件即可

提 issue 请一定要注明使用方式:docker 还是 本机服务运行, 是否root账号运行, arm64 还是 x86_64。

一键安装

# 安装
sh -c "$(curl -fSsL https://raw.githubusercontent.com/cnk3x/xunlei/main/install.sh)" - install --port=2345 --download-dir=/download
# 上面命令后面的参数 --port=后面接端口号, --download-dir=接下载文件夹,按自己的需求改
# 下载文件夹装好后没得改了,要改的话,卸载重装,或者用软链接
# 有时候安装失败,可以先运行卸载一次,再安装
# 启动后,浏览器访问你的设备地址+端口号绑定迅雷就可以了。 比如: http://192.168.3.11:2345
# 当前版本支持迅雷官方公测前的在线更新(不需要重新安装)

# 卸载
sh -c "$(curl -fSsL https://raw.githubusercontent.com/cnk3x/xunlei/main/uninstall.sh)"

# 卸载旧版本v2.1.x
sh -c "$(curl -fSsL https://raw.githubusercontent.com/cnk3x/xunlei/main/uninstall_old.sh)"

# 服务控制
# 启动
systemctl start xunlei
# 停止
systemctl stop xunlei
# 状态
systemctl status xunlei
# 查看日志(ctrl+c退出日志查看)
journalctl -fu xunlei

更新

使用应用内更新的功能

自行编译

克隆源码

  1. 下载官方的对应架构的群晖版迅雷spk文件
  2. 用解压软件解压spk文件
  3. 找到里面的 package.tgz, 再解压一次
  4. 找到里面的文件: xunlei-pan-cli-launcher.amd64, xunlei-pan-cli.版本号.amd64, index.cgi
  5. 找到里面的文件: 与 xunlei-pan-cli.版本号.amd64 同目录的version文件
  6. index.cgi 改名为 xunlei-pan-cli-web
  7. 将这四个文件复制到源码target目录
  8. 改你要改的,改完后编译。

Docker

https://github.com/cnk3x/xunlei/tree/docker

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
xlp module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL