关于zabbix 3.4.1 安装手册 for CentOS 7.4
系统:CentOS Linux release 7.4.1708 (Core)zabbix版本:Zabbix 3.4.1. © 2001–2017, Zabbix SIA1、关闭selinux、防火墙vim /etc/selinux/configSELINUX=disabledsetenforce 0systemctl stop firewalld.servicesystemctl disable firewalld.service包地址:zabbix/3.4/rhel/7/x86_64/官方文档:documentation/3.4/manual/installation/install_from_packages/rhel_centosrpm -ivh zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpmyum install -y zabbix-server-mysql zabbix-web-mysql2、创建数据库CentOS 7.x上MySQL数据库叫mariadb,需要安装以下包yum install -y mariadb mariadb-server启动数据并设置开机启动systemctl start mariadbsystemctl enable mariadb.service创建数据库mysql -uroot -p#初始无密码,回车进入数据库create database zabbix character set utf8 collate utf8_bin; #创建数据库及utf8编码grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'; #密码:zabbixflush privileges; #刷新exit #退出初始化数据库zcat /usr/share/doc/zabbix-server-mysql-3.4.1/create.sql.gz | mysql -uzabbix -p zabbix #回车输入密码 zabbix,稍等片刻即完成。可以进入mysql检查zabbix库是否创建use zabbix;show tables;3、配置Zabbix Server 数据库vim /etc/zabbix/zabbix_server.confDBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=zabbix启动并配置zabbix server 开机启动systemctl start zabbix-server systemctl enable zabbix-server4、zabbix agent 安装及启动yum install -y zabbix-agentsystemctl start zabbix-agentsystemctl enable zabbix-agent5、PHP配置vim /etc/httpd/conf.d/zabbix.conf
启动并设置开机启动systemctl start httpdsystemctl enable httpd6、开始安装先重启下所有服务systemctl restart mariadbsystemctl restart zabbix-serversystemctl restart zabbix-agentsystemctl restart httpd浏览器访问,中途只有一次输入数据库密码,一路下一步直到完成。http://IP地址/zabbix/setup.php默认账号:Admin 密码:zabbix
原创:老周
是不是还差一步导入数据库呀? 谢谢分享 学习了 aisiniao 发表于 2018-4-13 13:54
**** 作者被禁止或删除 内容自动屏蔽 ****
是少导入数据。要用下面的命令
zcat /usr/share/doc/zabbix-server-mysql-3.4.15/create.sql.gz | mysql -uzabbix -pzabbix zabbix
页:
[1]
2