How to install Htop to monitor your CentOS server
Htop is a command line utility that allows you to view the current processes running on your server. Install Htop from the command line and from the Htop screen, you can see each process and the resources its using including how long the process has been running in the server. This is a great utility to see what people are doing on your server and to find abusive containers so you can suspend them, You can then search each process and terminate them if required. To deploy Htop you will first need to login to your server as the root user and install the Htop repository. Issue the below commands one at a time.
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm rpm -Uhv rpmforge-release*.rf.i386.rpm
Next, you can use yum for CentOS systems or apt-get for Debian or Ubuntu systems to install Htop
Installing Htop in CentOS
yum install htop -y
and finally to run Htop just issue
You should now see the Htop screen like the one below taken from a random server owned by First2Host
You can use the numbers on your keyboard to group screens by process time or resource usage to make it easier to analyze the information Htop gives you.
How was this article?
More from All About Linux
Setup a website on an Ubuntu Server using Apache Virtual Hosts (Name-Bassed Hosting) In this guide, we will show you how …
How To Configure FailOver IPs On your CentOS Dedicated Server On some dedicated services, First2Host uses Failover IP blocks and these …