benson80 / aliyundrive-webdav-mount Goto Github PK
View Code? Open in Web Editor NEW将阿里云盘挂载为WebDAV并使用rclone挂载到本地
将阿里云盘挂载为WebDAV并使用rclone挂载到本地
安装aliyundrive-webdav
sudo snap install aliyundrive-webdav
卸载aliyundrive-webdav
sudo snap remove aliyundrive-webdav
创建目录
mkdir /etc/aliyundrive-webdav
安装Docker
snap install docker
Docker运行
docker run -d
--name=aliyundrive-webdav
--restart=always
-p 8080:8080
-v $PWD/aliyundrive-webdav/:/etc/aliyundrive-webdav/
-e REFRESH_TOKEN='your refresh token'
-e WEBDAV_AUTH_USER=admin
-e WEBDAV_AUTH_PASSWORD=admin
messense/aliyundrive-webdav
其中,REFRESH_TOKEN 环境变量为你的阿里云盘 refresh_token,WEBDAV_AUTH_USER 和 WEBDAV_AUTH_PASSWORD 为连接 WebDAV 服务的用户名和密码。
阿里云盘WebDAV
http://IP地址:8080
安装rclone
curl https://rclone.org/install.sh | sudo bash
配置
rclone config
mkdir /aliyunwebdav
rclone mount aliyunwebdav:/电影 /aliyunwebdav --allow-other --vfs-cache-mode writes&
fusermount -qzu /aliyunwebdav
vi /etc/systemd/system/rclone.service
[Unit]
Description=Rclone
After=network-online.target
[Service]
User=root
ExecStart=rclone mount aliyunwebdav:/电影 /aliyunwebdav --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
显示磁盘分区使用情况
df -h
显示文件大小
ls -lh
启动Jellyfin服务
sudo systemctl enable jellyfin
sudo systemctl start jellyfin
重启Jellyfin
systemctl restart jellyfin
停止Jellyfin
/etc/init.d/jellyfin stop
检查服务是否已正确启动
service jellyfin status
systemctl status jellyfin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.