CetntOS yum安装zabbix3.0
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CetntOS yum安装zabbix3.0相关的知识,希望对你有一定的参考价值。
服务端:
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm rpm -ivh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm yum install zabbix-server zabbix-web zabbix-server-mysql zabbix-web-mysql zabbix-agent -y yum install -y mysql-server mysql service mysqld start
vim /etc/my.cnf [mysqld] character-set-server= utf8 init-connect=‘SET NAMES utf8‘ collation-server=utf8_general_ci
service mysqld restart
mysql -u root create database zabbix character set utf8 collate utf8_bin; grant all on zabbix.* to [email protected] identified by ‘zabbix‘;
cd /usr/share/doc/zabbix-server-mysql-3.0.9 gunzip create.sql.gz
mysql -u root use zabbix source create.sql;
cd /etc/httpd/conf.d/ vim zabbix.conf php_value date.timezone Asia/Shanghai
vim /etc/zabbix/zabbix_server.conf DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=zabbix
service httpd restart service zabbix-server start
浏览器访问ip/zabbix
修改默认改密码
客户端:
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm yum install zabbix-agent -y
vim /etc/zabbix/zabbix_agentd.conf Server=服务端ip
service zabbix-agent start
以上是关于CetntOS yum安装zabbix3.0的主要内容,如果未能解决你的问题,请参考以下文章