当前位置:   article > 正文

window使用alist+RaiDrive将网盘挂载到本地_raidrive挂载百度网盘

raidrive挂载百度网盘

说明

  • 本文的意义在于记录经过实践检验的方案,同时分享操作中的细节和踩坑。本方案不一定完美,大家可以尝试其他的工具和解决方案
  • 思路:通过alist挂载网盘,然后通过RaiDrive将网盘内容映射到本地
  • 本套方案只是将网盘的内容挂载到本地,可以进行一些常见的文件增删改查的操作,以及文件的查看,和使用本地播放器播放远程的视频内容,不可视为本地硬盘,因为查看网盘文件时会将数据缓存到本地,数据的加载速度取决于网络的质量!远没有本地磁盘的加载速度快。有助于多个设备异地访问网盘保持时时最新!

软件分享

alist初始化

  1. 从官网或者分享的连接中获取对应的alist版本(本质就是一个exe文件)
  2. 然后创建一个alist目录,然后将解压后的alist.exe文件放入其中
  3. 运行alist,在当前目录路径中的最前面输入cmd然后敲回车键进入终端,使用alist --help可以查看alist的相关命令
    在这里插入图片描述
C:\Common Gadgets\alist>alist --help
A file list program that supports multiple storage,
built with love by Xhofe and friends in Go/Solid.js.
Complete documentation is available at https://alist.nn.ci/

Usage:
  alist [command]

Available Commands:
  admin       Show admin user's info and some operations about admin user's password
  cancel2fa   Delete 2FA of admin user
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  lang        Generate language json file
  restart     Restart alist server by daemon/pid file
  server      Start the server at the specified address
  start       Silent start alist server with `--force-bin-dir`
  stop        Stop alist server by daemon/pid file
  storage     Manage storage
  version     Show current version of AList

Flags:
      --data string     data folder (default "data")
      --debug           start with debug mode
      --dev             start with dev mode
      --force-bin-dir   Force to use the directory where the binary file is located as data directory
  -h, --help            help for alist
      --log-std         Force to log to std
      --no-prefix       disable env prefix

Use "alist [command] --help" for more information about a command.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  1. 使用以下命令运行alist并设置admin用户密码,然后访问localhost:5244
alist start
alist admin set 密码
  • 1
  • 2

挂载网盘(某度为例)

  1. 访问ip:5244或者自定义的访问端口,登录admin用户,打开管理界面(底部有管理)
    在这里插入图片描述
  2. 打开存储的添加页面,选择百度网盘
    在这里插入图片描述
  3. 进行挂载配置
    在这里插入图片描述
    在这里插入图片描述
  • 首先在浏览器登录百度网盘,然后打开官方百度网盘挂载说明文档,在刷新令牌部分点击连接,获取刷新令牌。然后再alist配置界面进行配置(请一定先登录网盘,然后点击连接获取刷新令牌)在这里插入图片描述
    在这里插入图片描述

alist自启动设置

  1. 在alist目录下创建alist_start.VBS文件,然后编辑文件内容如下
Set ws = CreateObject("Wscript.Shell") 
ws.run "cmd /c .\alist.exe server",vbhide
  • 1
  • 2
  • 有坑注意:如果设置脚本文件的默认打开方式,使用Microsoft ? Windows Based Script Host,如果使用记事本,重启之后直接打开脚本文件,而不是执行文件的内容
    在这里插入图片描述
  1. 右键创建快捷方式,然后win+r输入shell:startup,将快捷方式放入到启动目录
    在这里插入图片描述
    在这里插入图片描述

RaiDrive配置

webDav连接配置

  1. 无脑双击安装,然后打开软件,点击添加配置webdav连接配置
    在这里插入图片描述
    在这里插入图片描述

缓存目录设置

在这里插入图片描述

最终效果

在这里插入图片描述

  • 可以使用本地的播放器播放视频资料,随意调节播放相关的设置,文件资料也可以在使用本地应用编辑!
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/916700
推荐阅读
相关标签
  

闽ICP备14008679号