Total Pageviews

Tuesday 23 April 2013

为你的VPS安装htop,监控进程

CentOS默认的top命令很不爽,有的时候你想更好的查看系统进程和使用率,譬如当你的CPU使用率达到50%的时候,这时候htop就会帮上大忙了。
这是一个交互式的进程监控器,经过测试它和cPanel完美兼容。

那么如何安装它呢?

    wget http://woshka.com/opensource/htop-0.9.tar.gz
    tar xzvf htop-0.9.tar.gz
    cd htop-0.9/
    ./configure
    make
    make install

如果安装过程中出现error: missing libraries: libncurses这样的错误,使用下面的命令将函数库补全。

    yum install ncurses-devel