简介

功能插件

懒得翻译了,用得到的朋友自行研究吧 。

Name Description
lycheesync 任意目录同步图片 Sync Lychee with any directory containing photos More »
lycheeupload 通过SSH上传图片 Upload photos to Lychee via SSH More »
Jekyll Jekyll内嵌Lychee图床 Liquid tag for Jekyll sites that allows embedding Lychee albums More »
lychee-redirect 重定向 Redirect from an album-name to a Lychee-album More »
lychee-watermark 上传图片同时生成相应的水印图片 Adds a second watermarked photo when uploading images More »
lychee-rss RSS Feed生成 Creates a RSS-Feed out of your photos More »
lychee-FlashAir 不懂 Import from a Toshiba FlashAir WiFi SD card More »
lychee-webroot Controls photos accessibility and keeps Lychee files hidden More »
lychee-create-medium 自动生成中等尺寸的缩略图 Generate missing medium size photos More »

搭建步骤

事先要求

  • PHP5.5以上
  • MySQL数据库
  • PHP扩展:session, exif, mbstring, gd, mysqli, json, zip
  • PHP.INI设置
max_execution_time = 200
post_max_size = 100M
upload_max_size = 100M
upload_max_filesize = 20M
memory_limit = 256M

安装

git clone https://github.com/electerious/Lychee.git

权限设置

  • 将uploads/, data/ 和他们的全部子文件赋予777权限(可读可写)。
chmod -R 777 uploads/ data/

访问你的图床网站吧~

demo

demo

注意事项

  • 使用lychee的从服务器上传功能时,一定要把图片放在一个文件夹里,并命名,然后上传到upload/路径下,如果命名为“input1”,那么上传后就会多一个input1的相册,如果不建文件夹会把所有图片传到unsort相册里。
  • 在上传图片时,文件名不要包含太长的中文字符,例如文件名“2017-08-11 09-22-29屏幕截图.png”这种会上传失败。

以下为官方教程

英文

Requirements

  • Everything you need is a web-server with PHP 5.5 or later and a MySQL-Database.
    The following PHP extensions must be activated:
session, exif, mbstring, gd, mysqli, json, zip
  • To use Lychee without restrictions, we recommend to increase the values of the following properties in php.ini:
max_execution_time = 200
post_max_size = 100M
upload_max_size = 100M
upload_max_filesize = 20M
memory_limit = 256M
  • You might also take a look at Issue #106 if you are using nginx or in the FAQ if you are using CGI or FastCGI.
Download
  • The easiest way to download Lychee is with git:
git clone https://github.com/electerious/Lychee.git

You can also use the direct download.

Permissions

  • Change the permissions of uploads/, data/ and all their subfolders. Sufficient read/write privileges are required.
chmod -R 777 uploads/ data/

参考资料