高效管理你的图片:Chevereto图床+PicList批量管理
Chevereto图床是一款功能强大的图片管理系统,支持批量上传、拖拽上传、多用户管理、自动生成外链和缩略图。…
系统: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开心版? – 我的灵感和代码
一、Chevereto图床系统服务要求:LNMP
LNMP部署参考文章 : LNMP架构纯手搓部署
二、Chevereto图床部署
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
填写数据库信息安装即可
注意:提前在数据库配置好需要的数据库信息
三、Chevereto V4
目前未找到原因解决 Something Wong 的问题,关闭放跨站攻击无效