GitHub:https://github.com/cloudreve/Cloudreve
官方文档:https://docs.cloudreve.org/getting-started/install
安装好宝塔面板,nginx + mysql 5.7,添加网站做好域名解析
终端进入网站根目录,
centos一键安装脚本
wget https://gitee.com/jayson0201/webbackup/raw/master/centos_cloudinstall.sh && sh centos_cloudinstall.sh
Ubuntu一键安装脚本
wget https://gitee.com/jayson0201/webbackup/raw/master/Ubuntu_cloudinstall.sh && sh Ubuntu_cloudinstall.sh
如若未安装wget,执行
centos
yum install -y wget
ubuntu
apt install -y wget
#查看状态
systemctl status cloudreve
#启动
systemctl start cloudreve
#停止
systemctl stop cloudreve
查看默认账号和密码
cat ./passwd.txt
若你使用的是捐赠版程序,可执行完一键脚本后,将目录下的cloudreve替换为捐赠版的cloudreve程序,将授权文件key.bin放在与程序同目录下。
执行
./cloudreve --database-script UpgradeToPro
systemctl restart cloudreve
清空浏览器缓存(未访问过可不用)
设置ssl,添加反向代理:
如果你使用的apache,请根据下面操作
找到类似ProxyPass "/" "http://127.0.0.1:5212/"
在其后面加上nocanon
,保存
大功告成(使用的虚拟机故没用域名访问),使用你的域名访问即可,有问题可加QQ群:740441866