首先打开github并登录
然后打开
https://api.github.com/users/用户名
创建一个OAuth Apps
https://github.com/settings/developers
域名或者ip都可以
http://你的域名:8008
http://你的域名:8008/oauth2/callback
OAuth Apps的Client ID和Client secrets
上面的东西都需要记下来
需要放行8008 和 5555端口(默认的也可以自己改)
curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh
./nezha.sh
# 国内机器
curl -L https://raw.sevencdn.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh
CN=true ./nezha.sh
接下来安装
输入1回车
接着就要输入前面记录下来的GitHub账号ID、OAuth Apps的Client ID、OAuth Apps的Client secrets了