|
1.下载zabbix安装包
[root@zdj /]# wgethttps://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.4.7/zabbix-2.4.7.tar.gz/
2.安装依赖包
[root@zdj /]# yum install –y make mysql-server httpd php mysql-devel gcc net-snmp-devel curl-devel perl-DBI php-gd php-mysqlphp-bcmath php-mbstring php-xml
3.启动mysql
[root@zdj /]# useradd zabbix ---新建用户zabbix
[root@zdj /]# /etc/init.d/mysqld start
[root@zdj /]# mysqladmin -u root password 'eisoo.com'
[root@zdj /]# mysql -uroot -p
Enter password:
mysql> create database zabbix character set utf8; ---创建zabbix数据库
Query OK, 1 row affected (0.00 sec)
mysql> grant all on zabbix.* TO zabbix@'localhost' identified by'zabbixpass'; ---授权
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
4.导入zabbix数据
[root@zdj /]# tar xf zabbix-2.4.7.tar.gz
[root@zdj /]# ls
bin download lib media proc selinux tmp zabbix-2.4.7
boot etc lib64 mnt root srv usr zabbix-2.4.7.tar.gz
dev home lost+found opt sbin sys var
[root@zdj /]# cd zabbix-2.4.7/database/mysql/
[root@zdj mysql]# mysql -h localhost -uroot -peisoo.com zabbix |
|
|
|
|
|
|