CentOS 7 下 Zabbix 3.2 安装

详细讲解CentOS 7 下 Zabbix 3.2 安装的安装过程,希望对你有所帮助。

实验环境:

[zabbix@linuxidc ~]$ cat /etc/RedHat-release CentOS Linux release 7.2.1511 (Core)

不得不说,官方文档确实强大

1.官方文档地址:

https://

2.导入源:

[zabbix@linuxidc ~]$ sudo rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

3.安装zabbix包

[zabbix@linuxidc ~]$ sudo yum install zabbix-server-mysql zabbix-web-mysql

清楚的看一下要安装那些包

Package Arch Version Repository Size ============================================================================================================================================= Installing: zabbix-server-mysql x86_64 3.0.1-1.el7 zabbix 1.7 M zabbix-web-mysql noarch 3.0.1-1.el7 zabbix 3.5 k Installing for dependencies: OpenIPMI-libs x86_64 2.0.19-11.el7 base 501 k OpenIPMI-modalias x86_64 2.0.19-11.el7 base 15 k dejavu-fonts-common noarch 2.33-6.el7 base 64 k dejavu-sans-fonts noarch 2.33-6.el7 base 1.4 M fping x86_64 3.10-4.el7 epel 46 k httpd x86_64 2.4.6-40.el7.centos base 2.7 M httpd-tools x86_64 2.4.6-40.el7.centos base 82 k iksemel x86_64 1.4-6.el7 epel 50 k libtool-ltdl x86_64 2.4.2-21.el7_2 updates 49 k libzip x86_64 0.10.1-8.el7 base 48 k mailcap noarch 2.1.41-2.el7 base 31 k net-snmp-libs x86_64 1:5.7.2-24.el7 base 747 k php x86_64 5.4.16-36.el7_1 base 1.4 M php-bcmath x86_64 5.4.16-36.el7_1 base 56 k php-cli x86_64 5.4.16-36.el7_1 base 2.7 M php-common x86_64 5.4.16-36.el7_1 base 563 k php-gd x86_64 5.4.16-36.el7_1 base 126 k php-ldap x86_64 5.4.16-36.el7_1 base 51 k php-mbstring x86_64 5.4.16-36.el7_1 base 503 k php-mysql x86_64 5.4.16-36.el7_1 base 99 k php-pdo x86_64 5.4.16-36.el7_1 base 97 k php-xml x86_64 5.4.16-36.el7_1 base 124 k t1lib x86_64 5.1.2-14.el7 base 166 k unixODBC x86_64 2.3.1-11.el7 base 413 k zabbix-web noarch 3.0.1-1.el7 zabbix 3.3 M Transaction Summary ============================================================================================================================================= Install 2 Packages (+25 Dependent packages) Total download size: 17 M

4.我们给本机也安装上客户端

[zabbix@linuxidc ~]$ sudo yum install zabbix-agent

5.初始化数据库

CentOS 7 版本将MySQL数据库软件从默认的程序列表中移除,用mariadb代替了。用mariadb也行。我还是选择了mysql

(1)安装mysql

[zabbix@linuxidc ~]$ rpm -ivh mysql-community-release-el7-5.noarch.rpm #安装带有当前可用的mysql5系列社区版资源的rpm包 [zabbix@linuxidc ~]$ yum repolist enabled | grep "mysql.*-community.*" mysql-connectors-community/x86_64 MySQL Connectors Community 21 mysql-tools-community/x86_64 MySQL Tools Community 33 mysql56-community/x86_64 MySQL 5.6 Community Server 214 #查看当前可用的Mysql安装源 [zabbix@linuxidc ~]$ sudo yum install mysql-community-server [zabbix@linuxidc ~]$ sudo systemctl enable mysqld #设置开机启动 [zabbix@linuxidc ~]$ systemctl start mysqld #启动服务 ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units === Authentication is required to manage system services or units. Authenticating as: root Password: ==== AUTHENTICATION COMPLETE ===

进入mysql报错:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/91bd6cbe40162118c318daa7a8368129.html