linux:Centos 6.6

dstat:0.7.0

dstat 监控时,无颜色显示

注意,有这个提醒:Color support is disabled, python-curses is not installed

good了下这个问题,说是bug。。。

但是我仔细对比了服务器,发现dstat用的是python2.7并不是系统自带的python2.6.6

于是我修改 /usr/bin/dstat 的 #!/usr/bin/env python 为 #!/usr/bin/python2.6.6

dstat 监控时,无颜色显示

大功告成,搞定。

常用命令:dstat -clmnd

 

相关文章:

  • 2021-05-05
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-06
  • 2021-10-05
  • 2022-01-19
  • 2022-01-20
  • 2021-10-27
  • 2021-08-01
相关资源
相似解决方案