zabbix 2.4 install script under the OS of Ubuntu

#!/bin/bash
echo "-----------------------start install zabbix----------------------"
wget http://repo.zabbix.com/zabbix/2.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_2.4-1+trusty_all.deb
dpkg -i zabbix-release_2.4-1+trusty_all.deb
apt-get update
apt-get --missing
apt-get install zabbix-server-mysql zabbix-frontend-php
if [ $? -ne 0 ];then
echo "install failed ,please check it out!"
exit 1
fi
echo "ServerName 127.0.0.1:80" >> /etc/apache2/apache2.conf
service apache2 restart
service zabbix_server restart

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。