首先打开GitHub网站,https://github.com/
右上角点击头像,点击Settings -> Developer settings -> OAuth Apps,点击New OAuth App
得到Client ID,点击Generate a new client secret,获取Client secrets
填写Application name
Homepage URL填写http://你的域名:8008
Authorization callback URL填写http://你的域名:8008/oauth2/callback
哪吒探针Github地址:
https://github.com/naiba/nezha
在服务器中安装 Dashboard
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
如果你的面板服务器位于中国大陆,可以使用镜像:
curl -L https://cdn.jsdelivr.net/gh/naiba/nezha@master/script/install.sh -o nezha.sh && chmod +x nezha.sh && sudo CN=true ./nezha.sh
- 输入完成后,等待拉取镜像
安装结束后,如果一切正常,此时你可以访问域名+端口号,如 “http://你的域名:8008” 来查看面板 - 将来如果需要再次运行脚本,可以运行:
./nezha.sh
来打开管理脚本
