Linux系统服务器挂载AList或支持webdav的网盘,扩展空间

webdav

一、最简单的挂载支持WebDav的网盘

1、安装davfs2

Ubuntu/Debian下

apt-get install davfs2

【CentOS下】

yum install davfs2

2、创建目录并挂载

mkdir /novos

mount -t davfs https://brick.novos.be/remote.php/dav/files/账号/ /novos

例:

mount -t davfs http://yp.wolife.club:5244/dav/ /novos

【输入账号、密码即可。】

二、进阶用法

1、创建一个用户,用于davfs2

usermod -aG davfs2 用户名

2、创建需要挂载的目录和个人配置文件目录

mkdir /novos

mkdir /.davfs2

复制配置文件

cp /etc/davfs2/secrets /.davfs2/secrets

3、设置用户权限(改为自己的用户名

chown : /.davfs2/secrets

chmod 600 /.davfs2/secrets

编辑 ~/.davfs2/secrets ,输入WebDav网盘信息,如:

https://brick.novos.be/remote.php/dav/files/账号/ 用户名 密码

【建议在 /etc/davfs2/secrets 也添加上】

4、添加mount信息到 /etc/fstab

https://brick.novos.be/remote.php/dav/files/账号/ /root/novosdavfs user,rw,auto 0 0

5、使用

【添加】

mount /novos

【卸载】

umount /novos

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇