在LNMP基础上安装Zabbix监控系统

1、安装依赖包

yum -y install net-snmp net-snmp-devel perl-DBI curl curl-devel libevent libevent-devel


2、下载Zabbix软件包

https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/4.0.7/zabbix-4.0.7.tar.gz/download


3、解压Zabbix软件包

tar zxf zabbix-4.0.7.tar.gz


4、预编译

cd zabbix-4.0.7
[root@localhost zabbix-4.0.7]# ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl


5、编译及安装

[root@localhost zabbix-4.0.7]# make && make install


6、创建数据库并授权

[root@localhost zabbix-4.0.7]# mysql -uroot -p
mysql> create database zabbix;
mysql> grant all on zabbix.* to zabbix@'localhost' identified by '123456';
mysql> flus

你可能感兴趣的:(监控)