功能说明

  • 支持第三方云储存,本地、阿里云 OSS、腾讯云 COS、七牛云
  • 支持多桶储存,可同时添加多个对象存储桶管理
  • 多图上传、拖拽上传、粘贴上传、上传预览、全屏预览、一键复制图片外链
  • 多用户管理、分组管理;不同分组用户控制不同的存储桶
  • 完整的权限控制功能,不同用户组可分配不同的操作权限,控制其上传删除及查看
  • 完整的可视化日志功能,记录用户所有操作,方便事件溯源
  • 全局配置用户初始剩余储存空间、设置指定用户剩余储存空间
  • 支持接口上传、接口删除
  • 原创Geek扁平化页面风格,简约大气;前端使用vue开发,前后端分离

安装要求

  • PHP 版本 ≥ 7.2
  • Mysql版本 ≥ 5.5
  • PDO 拓展
  • fileinfo 拓展
  • curl 拓展

安装教程

  1. 下载LightPicture,上传至 web 运行环境,解压。
  2. 设置运行目录为 public。
  3. 配置网站默认文档:
<div class="enlighter-default enlighter-v-standard enlighter-t-enlighter enlighter-hover enlighter-overflow-scroll"><div class="enlighter-toolbar"><div class="enlighter-btn enlighter-btn-raw"></div><div class="enlighter-btn enlighter-btn-copy"></div><div class="enlighter-btn enlighter-btn-window"></div></div><div class="enlighter"><div class=""><div><span class="enlighter-text">index.</span><span class="enlighter-m3">html</span><span class="enlighter-text"></span></div></div><div class=""><div><span class="enlighter-text">index.</span><span class="enlighter-m3">php</span></div></div></div></div>
4. 配置 Rewrite 规则为:thinkphp ### [ Apache ]
<div class="enlighter-default enlighter-v-standard enlighter-t-enlighter enlighter-hover enlighter-overflow-scroll"><div class="enlighter-toolbar"><div class="enlighter-btn enlighter-btn-raw"></div><div class="enlighter-btn enlighter-btn-copy"></div><div class="enlighter-btn enlighter-btn-window"></div></div><div class="enlighter"><div class=""><div><span class="enlighter-g1"><</span><span class="enlighter-text">IfModule mod_rewrite.</span><span class="enlighter-m3">c</span><span class="enlighter-g1">></span><span class="enlighter-text"></span></div></div><div class=""><div><span class="enlighter-text">  Options +FollowSymlinks -Multiviews</span></div></div><div class=""><div><span class="enlighter-text">  RewriteEngine On</span></div></div><div class=""><div><span class="enlighter-text"></span></div></div><div class=""><div><span class="enlighter-text">  RewriteCond %</span><span class="enlighter-g1">{</span><span class="enlighter-text">REQUEST_FILENAME</span><span class="enlighter-g1">}</span><span class="enlighter-text"> !-d</span></div></div><div class=""><div><span class="enlighter-text">  RewriteCond %</span><span class="enlighter-g1">{</span><span class="enlighter-text">REQUEST_FILENAME</span><span class="enlighter-g1">}</span><span class="enlighter-text"> !-f</span></div></div><div class=""><div><span class="enlighter-text">  RewriteRule ^</span><span class="enlighter-g1">(</span><span class="enlighter-text">.*</span><span class="enlighter-g1">)</span><span class="enlighter-text">$ index.</span><span class="enlighter-m3">php</span><span class="enlighter-text">/$</span><span class="enlighter-n1">1</span><span class="enlighter-text"> </span><span class="enlighter-g1">[</span><span class="enlighter-text">QSA,PT,L</span><span class="enlighter-g1">]</span><span class="enlighter-text"></span></div></div><div class=""><div><span class="enlighter-text"></span><span class="enlighter-g1"><</span><span class="enlighter-text">/IfModule</span><span class="enlighter-g1">></span></div></div></div></div>
### [ Nginx]
<div class="enlighter-default enlighter-v-standard enlighter-t-enlighter enlighter-hover enlighter-overflow-scroll"><div class="enlighter-toolbar"><div class="enlighter-btn enlighter-btn-raw"></div><div class="enlighter-btn enlighter-btn-copy"></div><div class="enlighter-btn enlighter-btn-window"></div></div><div class="enlighter"><div class=""><div><span class="enlighter-text">location / </span><span class="enlighter-g1">{</span><span class="enlighter-text"> </span></div></div><div class=""><div><span class="enlighter-text">   </span><span class="enlighter-k1">if</span><span class="enlighter-text"> </span><span class="enlighter-g1">(</span><span class="enlighter-text">!-e $request_filename</span><span class="enlighter-g1">)</span><span class="enlighter-text"> </span><span class="enlighter-g1">{</span><span class="enlighter-text"></span></div></div><div class=""><div><span class="enlighter-text">       rewrite  ^</span><span class="enlighter-g1">(</span><span class="enlighter-text">.*</span><span class="enlighter-g1">)</span><span class="enlighter-text">$  /index.</span><span class="enlighter-m3">php</span><span class="enlighter-text">?s=/$</span><span class="enlighter-n1">1</span><span class="enlighter-text">  last;</span></div></div><div class=""><div><span class="enlighter-text">    </span><span class="enlighter-g1">}</span><span class="enlighter-text"></span></div></div><div class=""><div><span class="enlighter-text"></span><span class="enlighter-g1">}</span></div></div></div></div>
5. 访问 域名/install,根据页面提示安装。 6. 安装完成后默认 账号为admin 密码123456 注:完成后若开启前台注册请登录管理员账号配置发信邮箱 关于此套系统,我也向官方反馈了一些不足,提了建议,比如可以指定存储桶等等 演示站:api.2gh1.cn
此处内容需要评论回复后(审核通过)方可阅读。
最后修改:2022 年 05 月 15 日 04 : 44 PM
如果觉得我的文章对你有用,请随意赞赏