|

Chevereto V3-V4 图床配置指南:高效管理你的图片

Chevereto V3 开心版是一款功能强大的图床系统,支持批量上传、拖拽上传、多用户管理、自动生成外链和缩…

系统:RedHat 9.5
服务架构:LNMP
版本参考:Nginx(1.22.1) MySQL(8.0.34)PHP(8.2)

参考链接 : Chevereto-Free(v1.6.2版) 升级到 3.2开心版? 4.0.7开心版? – 我的灵感和代码

1. Chevereto 系统服务要求:LNMP

1.1 LNMP服务架构部署

LNMP部署参考文章 : LNMP架构纯手搓部署

2. Chevereto V3安装

2.1 上传chevereto 安装包

获取地址

mkdir -p /etc/chevereto 
sudo chown -R nginx:nginx /etc/chevereto 
cd /etc/chevereto 

2.2 配置chevereto伪静态

注意:每次修改 nginx 配置文件都要reload 或者重启nginx服务

sudo tee /etc/nginx/conf/chevereto.conf  <<EOF 
server {
    listen 80;
    server_name yourdomain.com; 
    root /var/www/chevereto;
    index index.php  index.html  index.htm; 
    
    access_log /etc/nginx/logs/chevereto.access.log; 
    error_log /etc/nginx/logs/chevereto.error.log; 
    
    location / {
        try_files \$uri \$uri/ /index.php?\$query_string; 
    }
    
    location ~ \.php$ { 
        include fastcgi_params;
        fastcgi_pass 127.0.0.1:9000; 
        fastcgi_index index.php; 
        fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
    }
    
    location ~* \.(jpg|jpeg|gif|png|webp|svg|ico|css|js|woff|woff2)$ {
        expires 365d;
        add_header Cache-Control "public, no-transform";
    }
}
EOF

2.3 部署chevereto

https://your_domain

填写数据库信息安装即可
注意:提前在数据库配置好需要的数据库信息

3. Chevereto V4

目前未找到原因解决 Something Wong 的问题,关闭放跨站攻击无效