Centos 7 zabbix系统安装,超详细!

1第一步打开官网下载地址,选择合适的版本,这边我用的是3A的服务器centos7.9,zabbix版本是5.0

https://www.zabbix.com/cn/download

2.安装配置zabbix

a. Install Zabbix repository  安装zabbix镜像源

rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm

yum clean all

b. 安装Zabbix server,Web前端,agent

yum install zabbix-server-mysql zabbix-agent

c. Install Zabbix frontend

yum install centos-release-scl

编辑配置文件 /etc/yum.repos.d/zabbix.repo and enable zabbix-frontend repository.

[zabbix-frontend] ... enabled=1 ...

Install Zabbix frontend packages.

yum install zabbix-web-mysql-scl zabbix-nginx-conf-scl

3.下载mysql数据库

yum install mariadb mariadb-server

4.启动数据库,并配置zabbix账户

systemctl restart mariadb

首先需要进入mysql,修改root用户密码,不然mysql不能使用

update user set password=password("zabbix") where user="root";   修改root用户密码

flush privileges;   刷新权限,

增加zabbix账户,并修改密码,注意一定要修改密码

mysql -uroot -p Enter password: mysql> create database zabbix character set utf8 collate utf8_bin; mysql> create user zabbix@localhost identified by 'password'; mysql> grant all privileges on zabbix.* to zabbix@localhost; mysql> use mysql; mysql> update user set password=password("zabbix") where user="zabbix"; mysql> flush privileges;

5导入初始架构和数据,系统将提示您输入新创建的密码

zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

为Zabbix server配置数据库,编辑配置文件 /etc/zabbix/zabbix_server.conf

为Zabbix前端配置PHP ,编辑配置文件 /etc/opt/rh/rh-nginx116/nginx/conf.d/zabbix.conf

编辑配置文件 /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf

5开放防火墙端口,并设置zabbix开机启动

firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --zone=public --add-port=3306/tcp --permanent firewall-cmd --zone=public --add-port=10051/tcp --permanent

systemctl restart  firewalld     重启防火墙

systemctl restart zabbix-server zabbix-agent rh-nginx116-nginx rh-php72-php-fpm    重启服务

systemctl enable zabbix-server zabbix-agent rh-nginx116-nginx rh-php72-php-fpm    设置开机启动

6配置网页  ip:zabbix     登录网址

后面就可以一步步的安照提示来,默认账号密码是 Admin  zabbix  这样zabbix就安装完成了,缺乏机器练手的小伙伴们可以去3A看看!

点赞
收藏

评论区

加载中...

相关推荐

Linux centos7下配置JDK环境

配置jdk环境,本人写了两种方案进行配置,下载JDK都是免费的,JDK各个版本的下载地址为:https://www.oracle.com/java/technologies/downloads/本文以JDK8为例,操作系统以3A云服务器的CentOS7.9为例,CentOS7的所有系统都是相同的操作。方案一:JDK安装包RPM安装的方式可以安装指定的版本号

Ubuntu16.04安装zabbix

1.安装zabbix所需的PHP模块aptgetinstallphp7.0bcmathphp7.0xmlphp7.0mbstring2.安装zabbixwgethttp://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabb

Mac下配置Golang环境

1.go的官网:https://golang.org/ 下载地址:https://golang.org/dl/ ps:因为windows的影响我用的apk版本的安装比较简单,后面也会介绍环境变量的配置同样是apk安装的前提.!(https://oscimg.oschina.net/oscnet/a87e53ebcaa5b1f5e34a

CentOS 6.4 Zabbix 安装

yum和rpm安装zabbix2.0.9,从2.0.4开始zabbix官方提供了从rpm包和yum仓库安装的方法,近来有空特地参考了官方文档进行了尝试,安装过程记录如下1、安装zabbix官方的软件配置仓库包rpmivhhttp://repo.zabbix.com/zabbix/2.0/rhel

5.10 监控介绍 5.11

5.10监控介绍 为什么要做监控?可以提前发现潜在故障隐患,第一时间解决掉。把影响降低。常见的监控软件:cactinagioszaabixopenfalconprometheusgrafana5.115.12 安装zabbix4.0zabbix官网 https://www.zabbi

Raspberry Pi Zabbix

发现官网的安装指引已经很方便了如有需要4.x版本请查看https://www.zabbix.com/download?zabbix4.0&os\_distributionraspbian&os\_version9\_stretch&dbmysql(https://www.oschin