官方脚本:
官方文档:https://nezha.wiki/guide/dashboard.html
curl -L https://raw.githubusercontent.com/nezhahq/scripts/refs/heads/main/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
以1panel Docker安装为例,安装完成后按提示输入以下信息:
- 请输入暴露端口: (默认 8008) 9527
- 请指定安装命令中预设的 nezha-agent 连接地址 (例如 example.com:443)123.123.123.123:9527
- 是否希望通过 TLS 连接 Agent?(影响安装命令)[y/N] N
- 登录后台,默认用户名密码 admin / admin
美化默认主题
<script>
window.CustomBackgroundImage="https://xx.png"; /* 页面背景图 */
window.CustomLogo = "https://xx.png"; /* 自定义Logo */
window.ShowNetTransfer = "true"; /* 卡片显示上下行流量 */
window.DisableAnimatedMan = "true"; /* 关掉动画人物插图 */
window.CustomIllustration = 'https://xx.png'; /*替换人物插图。如果需要关闭请把上面一行取消注释 */
window.CustomDesc ="MJJ:白嫖至上,技术先行"; /* 自定义描述 */
</script>
公开备注设置
"billingDataMod": {
"startDate": "2025-01-18T00:00:00+08:00",
"endDate": "2025-02-18T00:00:00+08:00",
"autoRenewal": "1",
"cycle": " 月",
"amount": "$ 12.25 USD"
},
"planDataMod": {
"bandwidth": "10 G",
"trafficVol": "10 TB/月",
"trafficType": "2",
"IPv4": "1",
"IPv6": "1",
"networkRoute": "圣诞活动",
"extra": "性能机"
}
}
那爪主题 (去掉地图)
<style>
.world-map-box {
display: none !important;
}
</style>
三网网络延迟
TCP-Ping IPv4 地址
- 深圳电信 :202.96.134.133
- 深圳移动:120.196.165.24
- 深圳联通:210.21.196.6