zabbix安装

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了zabbix安装相关的知识,希望对你有一定的参考价值。

安装zabbix:

server、web端

mysql数据库


rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

yum -y install mysql-community-server

systemctl start mysqld

systemctl enable mysqld

mysql_secure_installation


rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

yum install zabbix-server-mysql zabbix-web-mysql


mysql -uroot -p

    create database zabbix character set utf8 collate utf8_bin;

    grant all privileges on zabbix.* to [email protected] identified by ‘<password>‘;

    quit;


cd /usr/share/doc/zabbix-server-mysql-3.*

zcat create.sql.gz | mysql -uroot -p zabbix


vi /etc/zabbix/zabbix_server.conf

    DBHost=localhost

    DBName=zabbix

    DBUser=zabbix

    DBPassword=zabbix


vi /etc/httpd/conf.d/zabbix.conf

    max_execution_time 300

    memory_limit 128M

    post_max_size 16M

    php_value upload_max_filesize 2M

    max_input_time 300

    always_populate_raw_post_data -1

    date.timezone Asia/Shanghai


systemctl start zabbix-server

systemctl enable zabbix-server

systemctl start httpd

systemctl enable httpd


遇到问题:

    web GUi zabbix server is not running.

    log:    5108:20170626:124234.107 [Z3001] connection to database ‘zabbix‘ failed: [1130] Host ‘local‘ is not allowed to connect to this MySQL server

 15108:20170626:124234.109 Cannot connect to the database. Exiting...


数据库没有授权。解决方法:grant all privileges on zabbix.* to [email protected]‘%‘ identified by ‘<password>‘;


以上是关于zabbix安装的主要内容,如果未能解决你的问题,请参考以下文章

Zabbix——Zabbix的安装和基本配置

如何在windows下安装zabbix

zabbix安装

zabbix的基本安装

linux12 - zabbix -- zabbix安装01

Docker安装Zabbix