暴露验证
暴露验证
curl -s -o /dev/null -w '%{http_code}\n' http://app.example.com/druid/index.html
# 200 表示监控页可直接访问,应加保护或关闭收敛配置示例
收敛配置示例
druid.stat-view-servlet.enabled=true
druid.stat-view-servlet.login-username=monitor
druid.stat-view-servlet.login-password=<强口令>
druid.stat-view-servlet.allow=10.0.0.0/8
# 或生产环境直接关闭 stat-view-servletApache Druid 与 Druid 连接池是两个不同产品,都常用 /druid 前缀,核查时确认目标组件类型。