首页 > 其他 > 详细

How to install Zabbix on CENTOS 7

时间:2020-01-29 22:57:28      阅读:105      评论:0      收藏:0      [点我收藏+]

when you have installed zabbix , it is important of changing password.

How to install Zabbix on CENTOS 7

Setup 1 INSTALL

  • Create the repos of Zabbix
rpm -ivh https://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
  • Install software of Zabbix
yum install zabbix-server zabbix-webe zabbix-server-mysql zabbix-web-mysql mariadb-server mariadb  zabbix-agent -y
  • Modify the zabbix.conf about timezone
vim /etc/httpd/conf.d/zabbix.conf

php_value date.timezone Asia/Shanghai

Setup2 Modify Database

  • start database
systemctl start mariadb
  • Create User & Database about Zabbix

mysql

create database zabbix character set utf8 collate utf8_bin;

grant all on zabbix.* to zabbix@'localhost' identified by '123456';

exit


cd /usr/share/doc/zabbix-server-mysql-3.2.11/

zcat create.sql.gz |mysql -uzabbix -p123456 zabbix
  • Modify zabbix_server.conf
vim /etc/zabbix/zabbix_server.conf

DBHost=localhost
DBName-zabbix
DBUser=zabbix
DBPassword=123456
  • Start Zabbix-server
systemctl start zabbix-server
systemctl status zabbix-server
systemctl restart httpd
  • Loggin in Http://192.168.56.11/zabbix.php

Admin
zabbix

modify & start zabbix-agent

vim /etc/zabbix/zabbix_agentd.conf

systemctl restart zabbix-agent

It is OK now.

How to install Zabbix on CENTOS 7

原文:https://www.cnblogs.com/wadelin/p/12241685.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!