To confirm the service is running, you may use the following command: With the enable command, you tell the system to start the Monit service on system boot. The following command takes care of this:įinally, create the system startup links. It is also important to ensure that the system is up to date, and that the EPEL package list is loaded prior installation of Monit. Rpm -import /etc/pki/rpm-gpg/RPM-GPG-KEY* Then, import the EPEL GPG-key, using the following command: Therefore, before installing Monit, you need to install the EPEL repository, using the following command: Monit is not available in the default CentOS 7 repositories. For example, your LEMP or LAMP stack should already be active and configured.
Processes that Monit will be monitoring, should already be configured. Monit supports different Linux distros, but this guide will use CentOS 7. If you are a new user, you can get a free account in your Alibaba Cloud account. You must have Alibaba Cloud Elastic Compute Service (ECS) activated and verified your valid payment method. In this tutorial, we will be installing and configuring Monit on an Alibaba Cloud Elastic Compute Service (ECS) instance with CentOS 7.