Created
March 29, 2019 09:47
-
-
Save mehulved/53c249ba3513916c1acd90183f6633e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
MONIT_VERSION=5.25.3 | |
cd /tmp | |
sudo groupadd monit | |
sudo useradd monit -g monit | |
wget https://mmonit.com/monit/dist/binary/${MONIT_VERSION}/monit-${MONIT_VERSION}-linux-x64.tar.gz -O monit.tar.gz | |
echo "Untarring the archive" | |
tar xzvf monit.tar.gz | |
sudo cp -R monit-${MONIT_VERSION}/bin/monit /usr/local/bin/monit | |
sudo mkdir /etc/monit/ | |
sudo cp -R monit-${MONIT_VERSION}/conf/monitrc /etc/monit/monitrc | |
sudo chown -R monit:monit /etc/monit/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment