From b05f73bb88e50d776cec013395ca4d3bb75a9816 Mon Sep 17 00:00:00 2001 From: cppla <10623809+cppla@users.noreply.github.com> Date: Thu, 22 Oct 2020 17:39:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BF=AB=E9=80=9F=E8=B7=9F?= =?UTF-8?q?=E9=9A=8F=E7=B3=BB=E7=BB=9F=E5=90=AF=E5=8A=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加快速跟随系统启动说明 --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5c9f97a..e8a1bbf 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,14 @@ pip install psutil 安装即可 ``` -打开云探针页面,就可以正常的监控。接下来把服务器和客户端脚本自行加入开机启动,或者进程守护,或以后台方式运行即可!例如: nohup python client-linux.py & +打开云探针页面,就可以正常的监控。接下来把服务器和客户端脚本自行加入开机启动,或者进程守护,或以后台方式运行即可!例如: nohup python client-linux.py & + +如何快速跟随系统启动呢?其实好多人都搞复杂化了 +1、chmod 755 /root/client-linux.py +2、vim /etc/crontab,尾部追加 +```diff +@reboot root /root/client-linux.py SERVER=$server USER=$user +``` # 为什么会有ServerStatus中文版: