1. 国内服务器出现curl: (7) Failed to connect to raw.githubusercontent.com

  1. echo 199.232.68.133 raw.githubusercontent.com >> /etc/hosts

【host可参考以往的相关文章】

2. 修改服务器备注后变成”离线”久不恢复

在安装客户端(被监控)的服务器上执行systemctl restart nezha-agent重启程序

3.启动nezha-agent还是一直显示离线

检查配置有没有写对cat /etc/systemd/system/nezha-agent.service | grep ExecStart

4.反代失败

重新在宝塔面板添加站点

然后在反代配置


#PROXY-START/
location ~* \.(php|jsp|cgi|asp|aspx)$
{
proxy_pass http://127.0.0.1:8008;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
}
location /
{
proxy_pass http://127.0.0.1:8008;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}

#PROXY-END/

 

 

 

DEMO

最后更新于 2021-03-11