ubuntu 20.04 server 安装 zabbix

ubuntu 20.04 server 安装 zabbix

参考文档

https://zhuanlan.zhihu.com/p/587415883?utm_id=0
https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/
https://blog.csdn.net/ammc520/article/details/134279322
在Ubuntu 20.04上安装MySQL教程
https://blog.csdn.net/m0_57165777/article/details/127977315

wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-4%2Bubuntu20.04_all.deb

sudo dpkg -i zabbix-release_6.0-4+ubuntu20.04_all.deb

如果不执行 下面这句话 再下面的 会出错
sudo apt-get update

sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent

sudo apt install mysql-server
sudo apt-get install mysql-client

sudo mysql_secure_installation

VALIDATE PASSWORD COMPONENT can be used to test passwords: n
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : n
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : n
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y

Success.

All done!

systemctl status mysql.service
sudo cat /etc/mysql/debian.cnf
在这里插入图片描述

mysql -u debian-sys-maint -p

输入上面的密码
use mysql;
select user,plugin from user;
update user set plugin=‘mysql_native_password’ where user=‘root’;
select user,plugin from user;
alter user ‘root’@‘localhost’ identified by ‘1234’;
flush privileges;
exit

sudo service mysql restart

相关推荐

  1. sql server 2008 安装问题

    2023-12-06 11:12:06       29 阅读

最近更新

  1. TCP协议是安全的吗?

    2023-12-06 11:12:06       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-06 11:12:06       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-06 11:12:06       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-06 11:12:06       20 阅读

热门阅读

  1. 什么是供应链金融分账系统?

    2023-12-06 11:12:06       37 阅读
  2. vue2和vue3的区别

    2023-12-06 11:12:06       33 阅读
  3. oracle给用户授权查询权限

    2023-12-06 11:12:06       42 阅读
  4. MISRA C++ 2008 标准解析

    2023-12-06 11:12:06       36 阅读
  5. MX6ULL学习笔记(四)设备树的 OF 函数

    2023-12-06 11:12:06       30 阅读
  6. 函数式编程

    2023-12-06 11:12:06       39 阅读
  7. 关于打印机直连的分享

    2023-12-06 11:12:06       42 阅读
  8. 网约车系统的高并发设计与优化:开篇

    2023-12-06 11:12:06       39 阅读