TiDB Grafana反向代理

将Grafana 默认3000端口改为80端口访问,使用Nginx反向代理,nginx.conf中新增如下配置

    server {
      listen 80;
      location / {
        proxy_pass http://X.X.X.X:3000;
      }
    }

将原80端口改为其他端口; nginx -s reload即可;

TiDB Grafana反向代理_第1张图片

失败报错: If you're seeing this Grafana has failed to load its application files

TiDB Grafana反向代理_第2张图片

 原因:权限不足

排查Nginx日志: /usr/local/nginx/logs/error.log 

2022/02/28 11:39:10 [crit] 3018#0: *404 open() "/usr/local/nginx/proxy_temp/8/11/0000000118" failed (13: Permission denied) while reading upstream

nginx代理临时目录权限不足,为目录授权后恢复: chmod 777 -r /usr/local/nginx

你可能感兴趣的:(TiDB,nginx,服务器,运维,Grafana)