Giter Club home page Giter Club logo

aliyundrive-webdav-mount's People

Contributors

benson80 avatar

Stargazers

 avatar

Watchers

 avatar

aliyundrive-webdav-mount's Issues

将阿里云盘挂载为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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.