[root@vmware1 tools]# #wget http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.2.9/zabbix-2.2.9.tar.gz [root@vmware1 tools]# tar -zxf zabbix-2.2.9.tar.gz [root@vmware1 tools]# cd zabbix-2.2.9 [root@vmware1 zabbix-2.2.9]# ./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl [root@vmware1 zabbix-2.2.9]# make install 7.在MySQL中建立zabbix所需數據庫,以及帳號密碼。 [root@vmware1 zabbix-2.2.9]# mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.1.73 Source distribution Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database zabbix character set utf8; Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on zabbix.* to zabbix@'%' identified by 'zabbix'; Query OK, 0 rows affected (0.01 sec)
mysql> delete from mysql.user where user=""; Query OK, 2 rows affected (0.00 sec)