top -bcn 1
运行top命令,出错,如下:
TERM environment variable not set
解决:
top -bcn 1
++++++++++++++++++
看系统中的python进程占用资源的情况:
top -p `pgrep python | tr "\\n" "," | sed 's/,$//'`
也可以通过ps命令先找到进程号,然后通过进程号来查看:
top -p1212 -p2323
阅读(138) | 评论(0) | 转发(0) |
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
TERM environment variable not set
解决:
top -bcn 1
++++++++++++++++++
看系统中的python进程占用资源的情况:
top -p `pgrep python | tr "\\n" "," | sed 's/,$//'`
也可以通过ps命令先找到进程号,然后通过进程号来查看:
top -p1212 -p2323
相关热门文章
给主人留下些什么吧!~~
评论热议