CentOS 7 Zabbix 3.2 安装 1.0版
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS 7 Zabbix 3.2 安装 1.0版相关的知识,希望对你有一定的参考价值。
1.关闭selinux,重启服务器
vim /etc/selinux/config
SELINUX=disabled
reboot
2.关闭防火墙
systemctl stop firewalld.service
3.导入源,安装zabbix包
rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
yum install -y zabbix-server-mysql zabbix-web-mysql
yum install -y zabbix-agent
4.安装mysql、启动mysql服务、设置开机自启动
rpm -ivh http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
yum repolist enabled | grep "mysql.*-community.*"
yum install -y mysql-community-server
systemctl enable mysqld
systemctl start mysqld
5.创建zabbix数据库
mysql -uroot -p
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to [email protected] identified by ‘zabbix‘;
exit
6.数据导入
cd /usr/share/doc/zabbix-server-mysql-3.2.2/
zcat create.sql.gz | mysql -uroot -p zabbix
7.修改配置文件
yum install -y vim
vim /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
8.启动zabbix-server服务,设置开机自启动
systemctl start zabbix-server
systemctl enable zabbix-server
9.修改时区
vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
10.启动apache服务,设置开机自启动
systemctl start httpd
systemctl enable httpd
11.访问配置地址
http://192.168.8.228/zabbix/
本文出自 “每天进步一点点” 博客,请务必保留此出处http://zuoshou.blog.51cto.com/2579903/1884063
以上是关于CentOS 7 Zabbix 3.2 安装 1.0版的主要内容,如果未能解决你的问题,请参考以下文章
CentOS 7.x下部署和配置zabbix 3.2.x监控工具