3

【笔记】Linux 通过 WebDAV 挂载 Alist

 1 year ago
source link: https://loli.fj.cn/2023/08/10/Linux%E9%80%9A%E8%BF%87WebDAV%E6%8C%82%E8%BD%BDAlist/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Linux 通过 WebDAV 挂载 Alist

下载 davfs2

apt install -y davfs2
Should unprivileged users be allowed to mount WebDAV resources? [yes/no] yes

配置用户锁

  • 去除配置文件 davfs2.conf 第 38 行注释

/etc/davfs2/davfs2.conf

use_locks       1

配置 WebDAV 服务器账号(可选)

  • 如果不配置 WebDAV 服务器账号,则每次连接时都需要输入账号和密码
  • 在配置文件 secrets 末尾追加连接 WebDAV 服务器账号

http://<ip>:5244/webdav:WebDAV 服务器地址
<username>:登陆 WebDAV 服务器的用户名
<password>:登陆 WebDAV 服务器的密码

/etc/davfs2/secrets

http://<ip>:5244/dav <username> <password>

配置开机自启(可选)

http://<ip>:5244/webdav:WebDAV 服务器地址
<mount>:挂载点绝对路径

echo "mount.davfs http://<ip>:5244/dav <mount>" >> /etc/rc.local

挂载 WebDAV

http://<ip>:5244/webdav:WebDAV 服务器地址
<mount>:挂载点绝对路径

mount.davfs http://<ip>:5244/dav <mount>

神代綺凛


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK