Chevereto 是一个优秀的图床程序,有免费版和付费版之分,当然也有开心版,目前,Chevereto 已更新至 V4 版本,今天为大家分享一下使用 Chevereto v4 开心版搭建个人图床的过程,
一.开始要求
PHP 版本要求 8.0 及以上,MySQL 版本支持 5.x 及 8.0。
二.安装PHP扩展
需要安装 fileinfo、imagemagick 和 exif 这三个 PHP 扩展。
三.下载源码上传安装
官方:https://github.com/chevereto/chevereto/releases/tag/4.0.9
开心版链接:链接:https://pan.baidu.com/s/1bDTFI5R8hkRLlroTs4Yi3w?pwd=e2d0
提取码:e2d0
1.上传源码
将程序源码上传至网站根目录
2.添加伪静态
将下面的内容添加到 nginx.conf 文件中,如果使用的是宝塔面板,添加到 “伪静态” 中即可。
location ~* /(importing|app|content|lib)/.*\.(po|php|lock|sql)$ {
deny all;
}
location ~ \.(jpe?g|png|gif|webp)$ {
log_not_found off;
error_page 404 /content/images/system/default/404.gif;
}
location ~* /.*\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ {
add_header Access-Control-Allow-Origin "*";
}
location / {
index index.php;
try_files $uri $uri/ /index.php$is_args$query_string;
}
如果是 Apache 的话用工具转一下。
三.开始安装
访问域名tc.xiaoyeyuno.com它会自己跳转到http://tc.xiaoyeyuno.com/install,根据提示填写数据库信息
四.安装完成,打开仪表盘就算完成了
上传地址:https://域名/api/1/upload/
Apikey:后台APl获取