zabbix6.0安装基于Ubuntu20.04版本

本文档详细介绍了在Ubuntu系统中安装和配置Zabbix监控服务器的过程,包括安装MariasDB数据库,设置数据库安全,安装Zabbix软件,创建Zabbix数据库,导入数据,配置Zabbix Server和Agent,以及调整PHP和Nginx服务。同时,针对可能出现的数据库版本不匹配问题给出了解决方案。

官方网址

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

1.选择相关配置(这里我选择Ubuntu安装)

 2.zabbix部署根据官方文档

配置数据库(我安装的数据库为mariadb)

#安装数据库
[root@zabbix ~]#apt -y install mariadb-server
#配置数据库
[root@zabbix ~]#vim /etc/mysql/mariadb.conf.d/50-server.cnf
#skip-external-locking

# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address            = 0.0.0.0
#重启数据库
[root@zabbix ~]#systemctl restart mariadb.service
#基本安全配置

[root@zabbix ~]#mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB 
评论 6
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

zhu1241jie

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值