简单的操作系统监控服务器和客户端工具。
porthole-cmd的Python项目详细描述
舷窗
简单的服务器报告操作系统的cpu和磁盘使用情况。在
先决条件
Linux环境。 Python2.7及更高版本。在
如何使用
使用pip
---pypi发行版很快就准备好了。在
手动设置
下载分发、提取并运行。在
tar -xvf porthole-0.0.1.tar
cd porthole-0.0.1
python -m porthole.script serve
服务器
将porthole服务器运行到需要监视的操作系统上。在
pip
^{pr2}$手动设置
python -m porthole.script serve -host [host/default:""] -p [port/default:8000]
客户
获取响应
取回
porthole fetch -d [destination]
#OR
python -m porthole.script fetch -d [destination]
测试
试验
porthole test -e [expr] -s [source] -d [destination]
#OR
python -m porthole.script test -e [expr] -s [source] -d [destination]
帮助
porthole -h
#OR
python -m porthole.script -h
- 项目
标签: