windows 安装 glances监控服务器资源

发布包运行

conda create -n py311 python=3.11

conda activate py311

pip install psutil  windows-curses fastapi bottle uvicorn jinja2

glances -w

 

开发包运行

git clone https://github.com/nicolargo/glances

cd glances

python run.py -w

增加GPU监控

pip install nvidia-ml-py

web服务设置过滤

glances\processes.py   99行

self._filter = GlancesFilter()
self._filter.filter = '.*python.*'

仅显示python进程的效果

 文档

 https://doc.oxings.com/docs/glances.html

posted @ 2025-04-16 17:42  meetrice  阅读(19)  评论(0)    收藏  举报