官方网站:https://cloudreve.org/

安装Cloudreve

Cloudreve下载页下载最新版压缩包,把解压出来的 cloudreve文件放到服务器root目录下

在ssh中按顺序输入下面的命令进行安装。

切换到root目录

cd /root

赋予部署权限

chmod +x ./cloudreve

启动 Cloudreve:

./cloudreve

出现 正在监听5212端口时,不要关闭SSH窗口,注意保存管理员密码,宝塔/安全组打开5212端口,访问 http:ip:5212,登录一次Cloudreve,再运行Ctrl+C退出此命令的执行

安装升级systemd:

sudo yum install systemd-*

编辑systemd配置文件:

vim /usr/lib/systemd/system/cloudreve.service

i键进入编辑模式,然后将下面全部内容复制进去:

[Unit]
Description=Cloudreve
Documentation=https://blog.zeruns.tech
After=network.target
Wants=network.target

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

StandardOutput=null
StandardError=syslog

[Install]
WantedBy=multi-user.target

然后按 esc键退出编辑模式,输入 :wq再按回车键来保存。

接着分别运行下面三条命令:

systemctl daemon-reload
systemctl start cloudreve
systemctl enable cloudreve

绑定域名

利用Nginx反向代理绑定域名

把要绑定的域名绑定到搭建网盘服务器

搭建一个站点

请输入图片描述

最后修改:2021 年 06 月 28 日
如果觉得我的文章对你有用,请随意赞赏