cloudreve安装linux教程,linux搭建个人网盘cloudreve

# linux搭建个人网盘cloudreve

本文讲述如何在linux系统搭建个人网盘服务,本文使用的是开源的方案cloudreve。cloudreve基于Golang开发,支持通过webwav协议将服务端目录挂载到本地的windows或linux磁盘目录,支持预览office文件。

# 1. 安装cloudreve服务

# 1.1 从官网下载cloudreve_3.2.1_linux_amd64.tar.gz

(py3.6) wangshibiao@wangshibiao:~/test/cloudreve$ ll

总用量 18392

drwxrwxr-x 2 wangshibiao wangshibiao 4096 1月 18 23:53 ./

drwxrwxr-x 37 wangshibiao wangshibiao 12288 1月 18 23:52 ../

-rw-rw-r-- 1 wangshibiao wangshibiao 18813117 1月 18 23:53 cloudreve_3.2.1_linux_amd64_开源个人网盘.tar.gz

(py3.6) wangshibiao@wangshibiao:~/test/cloudreve$ tar -zxvf ./cloudreve_3.2.1_linux_amd64_开源个人网盘.tar.gz

cloudreve

(py3.6) wangshibiao@wangshibiao:~/test/cloudreve$ ll

总用量 55792

drwxrwxr-x 2 wangshibiao wangshibiao 4096 1月 18 23:53 ./

drwxrwxr-x 37 wangshibiao wangshibiao 12288 1月 18 23:52 ../

-rwxr-xr-x 1 wangshibiao wangshibiao 38295400 1月 6 18:29 cloudreve*

-rw-rw-r-- 1 wangshibiao wangshibiao 18813117 1月 18 23:53 cloudreve_3.2.1_linux_amd64_开源个人网盘.tar.gz

(py3.6) wangshibiao@wangshibiao:~/test/cloudreve$

# 1.2 运行

(py3.6) wangshibiao@wangshibiao:~/test/cloudreve$ ./cloudreve

___ _ _

/ __\ | ___ _ _ __| |_ __ _____ _____

/ / | |/ _ \| | | |/ _ | '__/ _ \ \ / / _ \

/ /___| | (_) | |_| | (_| | | | __/\ V / __/

\____/|_|\___/ \__,_|\__,_|_| \___| \_/ \___|

V3.2.1 Commit #3b22b4f Pro=false

================================================

[Info] 2021-01-18 23:53:32 初始化数据库连接

[Info] 2021-01-18 23:53:32 开始进行数据库初始化...

[Info] 2021-01-18 23:53:35 初始管理员账号:admin@cloudreve.org

[Info] 2021-01-18 23:53:35 初始管理员密码:9FBTK0rg

[Info] 2021-01-18 23:53:42 数据库初始化结束

[Info] 2021-01-18 23:53:42 初始化任务队列,WorkerNum = 10

[Info] 2021-01-18 23:53:42 初始化定时任务...

[Info] 2021-01-18 23:53:42 当前运行模式:Master

[Info] 2021-01-18 23:53:42 开始监听 :5212用户名和密码已经出现在启动日志中,需要记录下,以后不会再次提示。

# 2. 访问

浏览器访问主机的5212端口

# 3. 客户端挂载

# 3.1 linux客户端挂载

sudo apt install davfs2

mkdir /mnt/webdav

sudo mount -t davfs https://cloudreve.sofineday.com/dav /mnt/webdav 执行mount命令时,会提示输入账号和密码,需要注意,账号是登录web系统的账号,密码为使用该web账号登录系统后WebDAV菜单下账号管理页面中创建的用户(注意不要与管理面板中的用户管理混淆)密码。

(py3.6) wangshibiao@wangshibiao:~/test$ sudo mount -t davfs https://cloudreve.sofineday.com/dav /mnt/webdav

Please enter the username to authenticate with server

https://cloudreve.sofineday.com/dav or hit enter for none.

Username: admin@cloudreve.org

Please enter the password to authenticate user admin@cloudreve.org with server

https://cloudreve.sofineday.com/dav or hit enter for none.

Password:

(py3.6) wangshibiao@wangshibiao:~/test$ df -h

文件系统 类型 容量 已用 可用 已用% 挂载点

udev devtmpfs 7.8G 0 7.8G 0% /dev

tmpfs tmpfs 1.6G 9.6M 1.6G 1% /run

/dev/sda7 ext4 28G 3.2G 23G 13% /

/dev/sda9 ext4 37G 7.6G 28G 22% /usr

tmpfs tmpfs 7.8G 190M 7.7G 3% /dev/shm

tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock

tmpfs tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup

/dev/sda11 ext4 175M 71M 92M 44% /boot

/dev/sda5 ext4 145G 108G 30G 79% /data

/dev/sda2 ext4 106G 97G 4.0G 97% /data2

/dev/sda8 ext4 19G 12G 6.3G 64% /var

/dev/sda10 ext4 101G 95G 1.3G 99% /home

cgmfs tmpfs 100K 0 100K 0% /run/cgmanager/fs

tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/121

tmpfs tmpfs 1.6G 28K 1.6G 1% /run/user/1000

https://cloudreve.sofineday.com/dav fuse 1.3T 763G 509G 61% /mnt/webdav

(py3.6) wangshibiao@wangshibiao:~/test$ ll /mnt/webdav/

总用量 1

drwxr-xr-x 3 root root 72 1月 19 01:15 ./

drwx------ 2 root root 0 1月 19 01:43 lost+found/

(py3.6) wangshibiao@wangshibiao:~/test$

# 3.2 windows客户端挂载

使用映射网络驱动器的功能,挂载cloudreve服务端的目录到本地。 需要注意,上节中已经提到,账号是登录web系统的账号,密码为WebDAV菜单下账号管理页面中创建的用户(注意不要与管理面板中的用户管理混淆)密码。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值