ServerStatus Monitoring
Machine-translated (anthropic, claude-haiku-5-5) from the Chinese original. Read the original in 中文
Contents
Preface
I've been using this service myself all along. A few days ago my system was reinstalled, and I needed to set up the client again, but I couldn't remember the commands. I had to dig through someone else's blog, and that blog is blocked behind the Great Firewall, so it's inconvenient: I have to use a proxy every time, which is a hassle. So I wrote this article on my own blog...
Main Content
Example site: https://tz.xsy.app
System Requirements
CentOS 7 / Debian 7+ / Ubuntu 14.04+
Systems that aren't too obscure will mostly work. Many providers use these three distributions' kernels.
The ServerStatus client requires Python 2.7 or above to run properly. If you don't have it, please upgrade (to check your version: python -V ).
Notes
The method I used differs from the original article. The original uses the Caddy service, while I directly use Apache or Nginx. After all, I already have a website service, so there's no need to add another one.
Tutorial
Run the following code to download and run the script.
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/status.sh && chmod +x status.shAfter downloading the script, install the client or the server as needed:
# 显示客户端管理菜单
bash status.sh c
# 显示服务端管理菜单
bash status.sh sAfter running the script, a menu of operations will appear. Choose and enter 1 to start the installation.
At the start you will be prompted to enter the port the server listens on. If you're not sure, just use the default. If the server where you install the client sits behind NAT, please take the NAT port range into account.
Install the server first. During installation you will see this prompt:
是否由脚本自动配置HTTP服务(服务端的在线监控网站)[Y/n]
# 一开始会提示你输入网站服务器的域名和端口,如果没有域名可以直接回车代表使用 本机IP:8888。
# 如果你不懂,那就直接回车,如果你想用其他的HTTP服务自己配置,那么请输入 n 并回车。
# 注意,当你曾经安装过 服务端,同时没有卸载Caddy(HTTP服务),那么重新安装服务端的时候,请输入 n 并回车。However, I'm not using the bundled method, so choose n here.
Enter the directory where the script was downloaded and run the script:
# 客户端管理菜单
./status.sh c
# 服务端管理菜单
./status.sh sFollow the steps to install:
ServerStatus 一键安装管理脚本 [vx.x.x]
-- Toyo | doub.io/shell-jc3 --
0. 升级脚本
————————————
1. 安装 服务端
2. 更新 服务端
3. 卸载 服务端
————————————
4. 启动 服务端
5. 停止 服务端
6. 重启 服务端
————————————
7. 设置 服务端配置
8. 查看 服务端信息
9. 查看 服务端日志
————————————
10. 切换为 客户端菜单
当前状态: 服务端 已安装 并 已启动
请输入数字 [0-10]:Let's install the server first. Since this is the first installation, the script will definitely download the latest version.
Enter 1 and follow the steps to configure it. We'll skip that for now and move on to building the website.
Website Setup
If you're using BaoTa (宝塔) panel, that's the best case, because your environment will be the same as the blogger's.
If you're not, then the web page path is the same, and the differences are minor.
# 这个就是安装目录
usr/local/ServerStatus/webIf you're using BaoTa panel, please customize the installation directory. Simply copying these files won't work!
OK
That's the end of the tutorial. Recently I want to start a new series, documenting articles that correspond to uploading images to the Weibo image host, along with the Alibaba Cloud backup addresses for the images.
Comments