1. 安装AList网盘
安装
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s install
更新
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s update
卸载
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s uninstall
cd /opt/alist
手动设置密码
./alist admin set NEW_PASSWORD
启动: systemctl start alist
关闭: systemctl stop alist
状态: systemctl status alist
重启: systemctl restart alist
2. rclone挂载WebDAV目录
curl https://rclone.org/install.sh | sudo bash
rclone config
新建一个remote
取名为tianyi,类型为WebDAV
url: http://test.sunxiao.cf/dav/tianyi
vendor选择other
mkdir /tianyiwebdav
rclone mount tianyi:/video /tianyiwebdav --allow-other --vfs-cache-mode writes&
或
rclone mount tianyi:/video /tianyiwebdav --allow-non-empty --vfs-cache-mode full --vfs-cache-max-size 8G&
vi /etc/systemd/system/rclone.service
[Unit]
Description=Rclone
After=network-online.target
[Service]
User=root
ExecStart=rclone mount tianyi:/video /tianyiwebdav --allow-other --vfs-cache-mode writes
Restart=on-abort
[Install]
WantedBy=multi-user.target
开机自启动
systemctl enable rclone
启动
systemctl start rclone
停止
systemctl stop rclone
重启
systemctl restart rclone
查看状态
systemctl status rclone
如果Jellyfin无法打开电影,需要重启Jellyfin Docker
docker stop jellyfin,docker start jellyfin(或docker restart jellyfin)