Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloudreve云盘部署 #8

Open
Riunshow opened this issue Aug 14, 2019 · 1 comment
Open

cloudreve云盘部署 #8

Riunshow opened this issue Aug 14, 2019 · 1 comment

Comments

@Riunshow
Copy link
Owner

  1. 搭建好 LNMP 服务, 安装好 php fileinfo 组件
  2. 到官方网站下载:http://cloudreve.org/download.php
  3. 将根目录下的“mysql.sql”导入到你的数据库,编辑 application/database_sample.php 文件,填写数据库信息,并重命名为 database.php。
  4. runtime 目录需要写入权限,如果你使用本地存储,public 目录也需要有写入权限,给他们权限,755 权限即可。chmod -R 755 runtime public
  5. 设置 URL 重写
location / {
   if (!-e $request_filename) {
   rewrite  ^(.*)$  /index.php?s=/$1  last;
   break;
    }
}

nginx 配置 http://pan.rainbower.me/s/ripsxab7
6. 启动定时任务

echo "* * * * * curl http://pan.example.com/Cron" >> /var/spool/cron/root
chmod 600 /var/spool/cron/root
service crond reload
service crond restart
  1. 登录后台,后台 URL:http://你的域名/Admin, 初始用户名 admin@cloudreve.org,初始密码 admin ,登录后到设置 – 基本设置中检查站点 URL 是否正确
@Riunshow
Copy link
Owner Author

因不支持内网, 所以挂载在本地 ossfs
权限问题

ossfs rainbower-cloud /home/wwwroot/cloudreve/public/uploads/ossfs -ourl=oss-cn-hongkong-internal.aliyuncs.com -ouid=1002 -ogid=1002 -o allow_other -o mp_umask=007
用户为 www  1002:1002

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant