zabbix

環境 rhel7.3 server10
軟件: zabbix3.4 php5.4-42
[root@server10 ~]# ls
3.4 php-bcmath-5.4.16-42.el7.x86_64.rpm php-mbstring-5.4.16-42.el7.x86_64.rpm
安裝軟件:
[root@server10 ~]# yum install php-*
[root@server10 3.4]# yum install fping-3.10-1.el7.x86_64.rpm iksemel-1.4-2.el7.centos.x86_64.rpm zabbix-agent-3.4.6-1.el7.x86_64.rpm zabbix-server-mysql-3.4.6-1.el7.x86_64.rpm zabbix-web-3.4.6-1.el7.noarch.rpm zabbix-web-mysql-3.4.6-1.el7.noarch.rpm
[root@server10 3.4]# yum install mariadb-server #數據庫安裝
[root@server10 3.4]# systemctl start mariadb
[root@server10 3.4]# mysql
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)php

MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost identified by 'westos';
Query OK, 0 rows affected (0.00 sec)mysql

MariaDB [(none)]> quit
[root@server10 3.4]# cd /usr/share/doc/zabbix-server-mysql-3.4.6/
[root@server10 zabbix-server-mysql-3.4.6]# zcat create.sql.gz |mysql zabbix #導入zabbix庫
[root@server10 zabbix-server-mysql-3.4.6]# mysql
MariaDB [(none)]> use zabbix;
MariaDB [zabbix]> show tables;
[root@server10 ~]# cd /etc/zabbix/
[root@server10 zabbix]# ls
web zabbix_agentd.conf zabbix_agentd.d zabbix_server.conf
[root@server10 zabbix]# vim zabbix_server.conf
zabbix
zabbix
[root@server10 zabbix]# systemctl start zabbix-server
[root@server10 zabbix]# yum install httpd
[root@server10 zabbix]# vim /etc/httpd/conf.d/zabbix.conf
[root@server10 zabbix]# systemctl start httpd
[root@server10 zabbix]# systemctl start zabbix-agent
zabbix
重啓httpd瀏覽器登錄
默認賬號Admin 密碼爲zabbixweb

相關文章
相關標籤/搜索