mirror of
https://github.com/yshtcn/heartbeat.git
synced 2025-12-14 02:00:29 +08:00
Update README.md
This commit is contained in:
parent
70a0c90652
commit
7c8917ca20
11
README.md
11
README.md
@ -4,20 +4,25 @@
|
||||
## 运行效果
|
||||
通过访问连接,服务端会实现被动检测。同时本地访问结果会记录在heartbeat.log,如果服务端异常可以通过返回的代码进行故障排查。
|
||||
|
||||
## 直接运行:
|
||||
## 使用方法
|
||||
|
||||
### 获得python和把heartbeat
|
||||
确保安装了基本的python环境,把heartbeat.py和config.ini保存下来。
|
||||
|
||||
### 直接运行:
|
||||
```
|
||||
py heartbeat.py
|
||||
```
|
||||
观察是否出错,一般错误主要是因为缺少所需的库造成的。
|
||||
|
||||
## 安装所有涉及到的库:
|
||||
### 安装所有涉及到的库:
|
||||
这里使用了清华大学的源进行安装。
|
||||
```
|
||||
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pystray pillow requests configparser
|
||||
```
|
||||
|
||||
|
||||
## 后台运行:
|
||||
### 后台运行:
|
||||
```
|
||||
pythonw heartbeat.py
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user