5. 监控工具 ngxtop
最后更新于:2022-04-02 01:39:11
# 5. 监控工具 ngxtop
#### 1. ngxtop
[ngxtop](https://github.com/lebinh/ngxtop)是一款用python编写的类top的监控nginx信息的工具。它就像top一样,可以实时地监控nginx的访问信息。
#### 2. 安装
在ubuntu下是这样安装的。
```
sudo pip install ngxtop
```
如果没有装pip,可以用下面的命令安装。
```
sudo apt-get install python-pip
```
#### 3. 用法
直接输入命令就可以了。
```
ngxtop
```
效果是这样。

还可以监控远程的来源IP。
```
sudo ngxtop top remote_addr
```

完结。
';