在CentOS 7上使用Yum源安装 Zabbix 3.2

前端之家收集整理的这篇文章主要介绍了在CentOS 7上使用Yum源安装 Zabbix 3.2前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

@H_404_2@在CentOS 7上使用Yum源安装 Zabbix 3.2

1. 环境准备

1
2
3
4
5
[root@szzabbix~] #setenforce0
#sed-i"s/SELINUX=enforcing/SELINUX=disabled/g"/etc/selinux/config
#rpm--import/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#yuminstallepel-release.noarchwgetvimgccgcc-c++lsofchronytreenmapunziprsync-y
#rpm--import/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

2. LAMP安装

1

2

#yuminstallhttpdmariadbmariadb-servermariadb-clientPHPPHP-MysqL
#systemctlstartmariadb

3. Zabbix安装

3
#rpm-ivhhttp://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
#rpm--import/etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
#yuminstallzabbix-server-MysqLzabbix-web-MysqLzabbix-getzabbix-agent

4. 创建数据库

2
# MysqLadmin-urootpasswordABCabc!@#123

[root@szzabbix~]# MysqL-uroot-p

5
MariaDB[(none)]> CREATE DATABASE zabbix DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
GRANT ALL ON zabbix.* TO 'zabbix' @ '%' IDENTIFIED BY ;
'localhost' ;
MariaDB[(none)]>flush privileges ;
MariaDB[(none)]>quit

5. 导入数据

3
#cd/usr/share/doc/zabbix-server-MysqL-3.2.0/
[root@szzabbixzabbix-server-MysqL-3.2.0] #zcatcreate.sql.gz|MysqL-uroot-pzabbix
#cd~

6. 修改配置

1
#vim/etc/zabbix/zabbix_server.conf

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

#vim/etc/httpd/conf.d/zabbix.conf

PHP_value date.timezone Asia/Chongqing

7. 启动

#systemctlstarthttpd
#systemctlstartzabbix-server
#systemctlstartzabbix-agent

8. 通过 http://ip地址/zabbix配置

访问默认用户名/密码:Admin/zabbix,注意用户名也区分大小写

clip_image002

clip_image004

clip_image006

clip_image008

clip_image010

clip_image012

clip_image014

本文出自 “SQL Server Deep Dive博客,请务必保留此出处http://www.jb51.cc/article/p-acnvqvab-pb.html


补充:

以上服务都没有设置开机自启,需要设置为开机启动项的有:

@H_502_347@
3
[root@szzabbix~] # systemctl enable zabbix-server.service

[root@szzabbix~]#systemctl enable zabbix-agnet.service

systemctl enable httpd.service

[root@szzabbix~]#systemctl enable mariadb.service

原文链接:https://www.f2er.com/centos/377336.html

猜你在找的CentOS相关文章