PeachBlog

Peach

Peach

即使被迫带上荆棘之冠👑

Rowlet_826 peach826#26510 Sw-2892-8205-7702 peach@peach826.cn
树莓派搭建免费cloudeve云盘    

之前一直使用nextCloud云盘,虽然功能很多,但树莓派运行迟缓,体验很差,所以换了cloudeve。以下是安装过程。




1.下载对应版本的cloudeve并配置

下载地址:




https://github.com/cloudreve/Cloudreve

①找到自己系统需要的运行版本。树莓派一般使用arm32版本。上传至服务器

②配置cloudeve




# 赋予执行权限
chmod +x ./cloudreve
# 启动 Cloudreve
./cloudreve


第一次运行时屏幕会出现默认的账号密码。请勿第一次就后台运行!


在cloudeve目录下的conf.ini中可以进行配置:

1>配置ssl




[SSL]
Listen = :5211
CertPath = /xx/xx/ssl/xx.pem
KeyPath = /xx/xx/ssl/xx.key


2>配置redis




[Redis]
Server = 127.0.0.1:6379
;默认没有密码
Password =
DB = 0

3>配置mysql




[Database]
Type = mysql
; MySQL 端口
Port = 3306
; 用户名
User = *****
; 密码
Password = ******
; 数据库地址
Host = 127.0.0.1
; 数据库名称
Name = v3
; 数据表前缀
TablePrefix = cd_
; 字符集
Charset = utf8
; SQLite 数据库文件路径
DBFile = cloudreve.db


从新启动以应用配置





2.为cloudeve添加启动项

Systemd方法:




# 编辑配置文件
vim /usr/lib/systemd/system/cloudreve.service


将下文 PATH_TO_CLOUDREVE 更换为程序所在目录::




[Unit]
Description=Cloudreve
Documentation=https://docs.cloudreve.org
After=network.target
After=mysqld.service
Wants=network.target

[Service]
WorkingDirectory=/PATH_TO_CLOUDREVE
ExecStart=/PATH_TO_CLOUDREVE/cloudreve
Restart=on-abnormal
RestartSec=5s
KillMode=mixed

StandardOutput=null
StandardError=syslog

[Install]
WantedBy=multi-user.target


之后可以使用以下指令来使用cloudeve





# 更新配置
systemctl daemon-reload

# 启动服务
systemctl start cloudreve

# 设置开机启动
systemctl enable cloudreve





3.使用中遇到的麻烦

①为了提高云盘的存储能力买了一块便携式移动硬盘。每次有大量读写的场景就会烧系统。

研究后发现树莓派带不动没有单独供电的移动硬盘。

解决方法:淘宝买带有独立供电的数据线给硬盘单独供电

②发现网盘内的文件目录和真实的存储目录时不同的。

解决方法: 设置—>文件->从外部导入(只是从数据库建立目录,不会单独占据存储容量)

Links: Rainy的小站🌸

节假日倒计时 sitemap

京ICP备19011103号-1       PowerBy:

Copyright © by Peach All Rights Reserved.

Blog公告
温馨提醒:当前为测试阶段

项目为测试阶段,bug提交

邮件:peach@peach826.cn