Cloudreve:一款全新的网盘程序,推荐使用!

热门标签

,

日主题主题

简洁、安全、稳定、响应式布局多功能模板。

¥10 现在购买

特别声明:文章多为网络转载,资源使用一般不提供任何帮助,特殊资源除外,如有侵权请联系!

<p> Cloudreve的介绍作者已经写的很全面了,这里照搬一下,就是为什么我觉得这名字和Chevereto有点神似2333:</p><blockquote><p>Cloudreve:基于ThinkPHP构建的网盘系统,能够助您以较低成本快速搭建起公私兼备的网盘。</p><p>目前已经实现的特性:</p><p>快速对接多家云存储,支持七牛、又拍云、阿里云OSS、AWS S3、自建远程服务器,当然,还有本地存储<br />可限制单文件最大大小、MIMEType、文件后缀、用户可用容量<br />图片、音频、视频、文本、Markdown、Ofiice文档在线预览<br />移动端全站响应式布局<br />文件、目录分享系统,可创建私有分享或公开分享链接<br />用户个人主页,可查看用户所有分享<br />多用户系统、用户组支持<br />初步完善的后台,方便管理<br />拖拽上传、分片上传、断点续传、下载限速(*实验性功能)<br />多上传策略,可为不同用户组分配不同策略<br />用户组基础权限设置、二步验证<br />WebDAV协议支持</p></blockquote><p>官方网站:https://cloudreve.org/</p><p>程序下载:https://cloudreve.org/download.php</p><p>项目地址:https://github.com/HFO4/Cloudreve/</p><p>写一下安装教程吧,不过我这次是用的自己搭建的LNMP环境,所以如果你打算按照我下面的方法来安装Cloudreve,请务必先按照下面这篇文章将LNMP环境装好:</p><p><iframe class="wp-embedded-content" title="《CentOS7手动安装Nginx/MySQL/PHP/phpMyAdmin》—荒岛" src="https://lala.im/2571.html/embed#?secret=oiIDqDb4k8" width="500" height="327" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" sandbox="allow-scripts" data-secret="oiIDqDb4k8" data-mce-fragment="1"></iframe></p><p>PS:宝塔面板应该也是可以成功安装的。</p><p>Q:为什么不用宝塔了?</p><p>A:我手动装一个这样的LNMP环境比宝塔装的要快,节约时间(宝塔的下载源太鸡儿操蛋了)。另外手头上实在没有机器能空出来折腾了。</p><p>进入正题:</p><p>在Nginx站点目录下新建一个Cloudreve目录:</p><pre class="prettyprint"><span class="pln">cd </span><span class="pun">/</span><span class="pln">rootmkdir </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">share</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">cloudreve</span></pre><p>进入到这个目录,下载程序并解压:</p><pre class="prettyprint"><span class="pln">yum </span><span class="pun">-</span><span class="pln">y install unzipcd </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">share</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">cloudrevewget https</span><span class="pun">:</span><span class="com">//cloudreve.org/release/a57dd793196049915a22ff16f894650d21187723.zip</span><span class="pln">unzip a57dd793196049915a22ff16f894650d21187723</span><span class="pun">.</span><span class="pln">zip</span></pre><p>新建一个rewrite目录,专门用来存放Nginx伪静态规则的conf(如果你已经创建好了可以略过):</p><pre class="prettyprint"><span class="pln">mkdir </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">conf</span><span class="pun">.</span><span class="pln">d</span><span class="pun">/</span><span class="pln">rewrite</span></pre><p>在rewrite目录下新建一个cloudreve.conf:</p><pre class="prettyprint"><span class="pln">vi </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">conf</span><span class="pun">.</span><span class="pln">d</span><span class="pun">/</span><span class="pln">rewrite</span><span class="pun">/</span><span class="pln">cloudreve</span><span class="pun">.</span><span class="pln">conf</span></pre><p>写入如下内容:</p><pre class="prettyprint"><span class="pln">location </span><span class="pun">/</span> <span class="pun">{</span> <span class="kwd">if</span> <span class="pun">(!-</span><span class="pln">e $request_filename</span><span class="pun">)</span> <span class="pun">{</span><span class="pln"> rewrite </span><span class="pun">^(.*)</span><span class="pln">$ </span><span class="pun">/</span><span class="pln">index</span><span class="pun">.</span><span class="pln">php</span><span class="pun">?</span><span class="pln">s</span><span class="pun">=/</span><span class="pln">$1 </span><span class="kwd">last</span><span class="pun">;</span> <span class="kwd">break</span><span class="pun">;</span> <span class="pun">}</span> <span class="pun">}</span></pre><p>保存,然后我们再在nginx的conf.d目录下新建一个Cloudreve的站点conf:</p><pre class="prettyprint"><span class="pln">vi </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">conf</span><span class="pun">.</span><span class="pln">d</span><span class="pun">/</span><span class="pln">cloudreve</span><span class="pun">.</span><span class="pln">conf</span></pre><p>写入如下内容:</p><pre class="prettyprint"><span class="pln">server </span><span class="pun">{</span><span class="pln"> listen </span><span class="lit">81</span><span class="pun">;</span><span class="pln"> server_name </span><span class="lit">172.104</span><span class="pun">.</span><span class="lit">89.55</span><span class="pun">;</span><span class="pln"> client_max_body_size </span><span class="lit">5000m</span><span class="pun">;</span> <span class="com">#charset koi8-r;</span> <span class="com">#access_log /var/log/nginx/host.access.log main;</span><span class="pln"> location </span><span class="pun">/</span> <span class="pun">{</span><span class="pln"> root </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">share</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">cloudreve</span><span class="pun">;</span><span class="pln"> index index</span><span class="pun">.</span><span class="pln">html index</span><span class="pun">.</span><span class="pln">htm index</span><span class="pun">.</span><span class="pln">php</span><span class="pun">;</span><span class="pln"> include </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">conf</span><span class="pun">.</span><span class="pln">d</span><span class="pun">/</span><span class="pln">rewrite</span><span class="pun">/</span><span class="pln">cloudreve</span><span class="pun">.</span><span class="pln">conf</span><span class="pun">;</span> <span class="pun">}</span><span class="pln"> location </span><span class="pun">~</span><span class="pln"> \.php$ </span><span class="pun">{</span><span class="pln"> root </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">share</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">cloudreve</span><span class="pun">;</span><span class="pln"> fastcgi_pass </span><span class="lit">127.0</span><span class="pun">.</span><span class="lit">0.1</span><span class="pun">:</span><span class="lit">9000</span><span class="pun">;</span><span class="pln"> fastcgi_index index</span><span class="pun">.</span><span class="pln">php</span><span class="pun">;</span><span class="pln"> fastcgi_param SCRIPT_FILENAME </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">share</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">cloudreve$fastcgi_script_name</span><span class="pun">;</span><span class="pln"> include fastcgi_params</span><span class="pun">;</span> <span class="pun">}</span><span class="pun">}</span></pre><p>注:</p><p>一、listen监听端口,正规做站请改成80</p><p>二、server_name正规做站,请将这里的IP改成你的站点域名,多个域名用空格隔开。</p><p>三、client_max_body_size的值,这里我设置的是5000M,如果你想让你的网盘程序上传更大体积的单文件请修改此值。(在php.ini内也要设置post_max_size的值与此值差不多相等)</p><p>确定写入的内容无误后,保存然后重启Nginx:</p><pre class="prettyprint"><span class="pln">systemctl restart nginx</span></pre><p>使用phpMyAdmin新建一个Cloudreve数据库:</p><p><img class="img-thumbnail" src="https://lala.im/wp-content/uploads/2018/02/lala.im_2018-02-19-05-366.png" alt="Cloudreve:一款全新的网盘程序,推荐使用!" caption="Cloudreve:一款全新的网盘程序,推荐使用!" title="Cloudreve:一款全新的网盘程序,推荐使用!"/></p><p>导入Cloudreve程序目录下的mysql.sql:</p><p><img class="img-thumbnail" src="https://lala.im/wp-content/uploads/2018/02/lala.im_2018-02-19-28-659.png" alt="Cloudreve:一款全新的网盘程序,推荐使用!" caption="Cloudreve:一款全新的网盘程序,推荐使用!" title="Cloudreve:一款全新的网盘程序,推荐使用!"/></p><p>如图所示:</p><p><img class="img-thumbnail" src="https://lala.im/wp-content/uploads/2018/02/lala.im_2018-02-19-50-216.png" alt="Cloudreve:一款全新的网盘程序,推荐使用!" caption="Cloudreve:一款全新的网盘程序,推荐使用!" title="Cloudreve:一款全新的网盘程序,推荐使用!"/></p><p>回到Xshell中,复制一份程序的数据库配置文件并重命名为database.php:</p><pre class="prettyprint"><span class="pln">cp </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">share</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">cloudreve</span><span class="pun">/</span><span class="pln">application</span><span class="pun">/</span><span class="pln">database_sample</span><span class="pun">.</span><span class="pln">php </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">share</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">cloudreve</span><span class="pun">/</span><span class="pln">application</span><span class="pun">/</span><span class="pln">database</span><span class="pun">.</span><span class="pln">php</span></pre><p>编辑这个配置文件,填写你的数据库连接信息:</p><pre class="prettyprint"><span class="pln">vi </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">share</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">cloudreve</span><span class="pun">/</span><span class="pln">application</span><span class="pun">/</span><span class="pln">database</span><span class="pun">.</span><span class="pln">php</span></pre><p>如图所示:</p><p><img class="img-thumbnail" src="https://lala.im/wp-content/uploads/2018/02/lala.im_2018-02-19-40-075.png" alt="Cloudreve:一款全新的网盘程序,推荐使用!" caption="Cloudreve:一款全新的网盘程序,推荐使用!" title="Cloudreve:一款全新的网盘程序,推荐使用!"/></p><p>最后更改程序目录的所有者:</p><pre class="prettyprint"><span class="pln">chown </span><span class="pun">-</span><span class="pln">R apache</span><span class="pun">:</span><span class="pln">apache </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">share</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">cloudreve</span></pre><p>不出意外,现在你就可以通过浏览器打开你的站点了:</p><p><img class="img-thumbnail" src="https://lala.im/wp-content/uploads/2018/02/lala.im_2018-02-19-15-196.png" alt="Cloudreve:一款全新的网盘程序,推荐使用!" caption="Cloudreve:一款全新的网盘程序,推荐使用!" title="Cloudreve:一款全新的网盘程序,推荐使用!"/></p><p>默认的管理员账号:admin@cloudreve.org<br />密码:admin<br />后台地址:http://你的域名/Admin<br />注:后台地址要先在前台用管理员账号登录后才能访问的到。</p><p>登录进去第一件事当然是改密码啦:</p><p><img class="img-thumbnail" src="https://lala.im/wp-content/uploads/2018/02/lala.im_2018-02-19-14-651.png" alt="Cloudreve:一款全新的网盘程序,推荐使用!" caption="Cloudreve:一款全新的网盘程序,推荐使用!" title="Cloudreve:一款全新的网盘程序,推荐使用!"/></p><p>管理员界面:</p><p><img class="img-thumbnail" src="https://lala.im/wp-content/uploads/2018/02/lala.im_2018-02-19-33-456.png" alt="Cloudreve:一款全新的网盘程序,推荐使用!" caption="Cloudreve:一款全新的网盘程序,推荐使用!" title="Cloudreve:一款全新的网盘程序,推荐使用!"/></p><p>试试新建文件夹、传点图片、音乐什么的:</p><p><img class="img-thumbnail" src="https://lala.im/wp-content/uploads/2018/02/lala.im_2018-02-19-09-048.png" alt="Cloudreve:一款全新的网盘程序,推荐使用!" caption="Cloudreve:一款全新的网盘程序,推荐使用!" title="Cloudreve:一款全新的网盘程序,推荐使用!"/></p><p>文件分享功能:</p><p><img class="img-thumbnail" src="https://lala.im/wp-content/uploads/2018/02/lala.im_2018-02-19-44-575.png" alt="Cloudreve:一款全新的网盘程序,推荐使用!" caption="Cloudreve:一款全新的网盘程序,推荐使用!" title="Cloudreve:一款全新的网盘程序,推荐使用!"/></p><p>还有更多功能和设置这里就不多BB了。</p><p>写在最后:</p><p>Cloudreve是一款最近刚出炉的新网盘程序,作者前身的作品有树洞外链。个人觉得此网盘程序前途无可限量,先膜一波!强烈推荐各位大佬使用! </p>
本文最后更新于2018年7月17日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!
标签:

未经允许不得转载:作者:yxy021598, 转载或复制请以 超链接形式 并注明出处 红柳客
原文地址:《Cloudreve:一款全新的网盘程序,推荐使用!》 发布于2018-07-17

分享到:
赞(0) 打赏

评论 抢沙发

1 + 8 =


Cloudreve:一款全新的网盘程序,推荐使用!

长按图片转发给朋友

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

Vieu4.0主题
专业打造轻量级个人企业风格博客主题!专注于前端开发,全站响应式布局自适应模板。
切换注册

登录

忘记密码 ?

您也可以使用第三方帐号快捷登录

Q Q 登 录
微 博 登 录
切换登录

注册