前天的学生机升配相信各位MJJ玩的都挺爽,但是升级完这配置不干点啥都对不起这带宽和流量了.今天就来整一个自己的图床
配置环境:CentOS8.0+Nginx1.19.4+PHP7.4+MySQL5.7+宝塔7.5.1
示例主机:腾讯云轻量应用服务器2C4G 80G 1200G@6M

Step 1开启bbr
这里编辑hosts(/etc/hosts) 输入199.232.4.133 raw.githubusercontent.com,保存

依次输入下列命令并执行
wget --no-check-certificate -O /opt/bbr.sh https://github.com/teddysun/across/raw/master/bbr.sh
chmod 755 /opt/bbr.sh
/opt/bbr.sh

进入下图页面,按任意键执行,返回
[Info] Setting TCP BBR completed…
就是开启完bbr了

Step 2 下载安装文件并安装
给站点配置伪静态 添加在最后一个}前面
# Image not found replacement
location ~* (jpe?g|png|gif) {
log_not_found off;
error_page 404 /content/images/system/default/404.gif;
}
# CORS header (avoids font rendering issues)
location ~ \.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ {
add_header Access-Control-Allow-Origin "*";
}
# Pretty URLs
location / {
try_files $uri $uri/ /index.php?$query_string;
}


安装文件地址https://codeload.github.com/Chevereto/Chevereto-Free/zip/1.3.0
下载完毕后解压访问你的站点,在这里输入你的数据库账号密码,点击continue

这里设置管理员账号信息 箭头所指位置要选personal(个人使用)

到这里,图床就搭建完毕了