ServerStatus-Hotaru探针安装时可能出现的问题及解决办法

一.Caddy解压失败或压缩文件错误

1
bash status.sh s

在服务端运行以上代码时,若直接选择由脚本自动配置HTTP服务,最终会出现这样的错误:Caddy解压失败。
这是由于Caddy官方没法安装V1版本了所导致的,这时一个比较好的解决办法应该是在vps上安装宝塔面板,在宝塔面板内绑定好域名并在设置-网站目录里将网站目录改为usr/local/ServerStatus/web,当然你也可以手动安装Nginx。

1
bash status.sh s

此时再通过以上代码安装服务端便可成功启动。

二.server status启动失败

一般情况下,如果你前面的设置都没有出现问题,却在最后启动server status时失败,如果你的服务器是Ubuntu/Debian系统,这时需检查你是否启用root权限,若没有请进入root用户;如果你的服务器是CentOS系统,建议更换系统重新安装。

三.ServerStatus的完整安装脚本

服务端

若服务器在国外

1
2
wget https://raw.githubusercontent.com/CokeMine/ServerStatus-Hotaru/master/status.sh
bash status.sh s

若服务器在国内

1
2
wget -N --no-check-certificate http://southcat.net/bash/status.sh && chmod +x status.sh
bash status.sh c

客户端

若服务器在国外

1
2
wget https://raw.githubusercontent.com/CokeMine/ServerStatus-Hotaru/master/status.sh
bash status.sh s

若服务器在国内

1
2
wget -N --no-check-certificate http://southcat.net/bash/status.sh && chmod +x status.sh
bash status.sh c

本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!