扩容根分区
同一物理分区内的两个卷
cp -r /home/* /tmp/home
umount /home
lvremove /dev/cl/home
lvextend -l +100%FREE /dev/cl/root
xfs_growfs /
Zabbix
两台虚拟机
192.168.9.64 (备) 192.168.9.66(主)
各在两台上安装
dnf install zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-agent Zabbix-proxy-mysql
在两台mysql上做互为主从
create database zabbix character set utf8 collate utf8_bin;
create user zabbix@localhost identified by
‘password‘;
grant all privileges on zabbix.* to
zabbix@localhost;
create database zabbixproxy character set utf8
collate utf8_bin;
create user zabbixproxy@localhost identified by
‘password‘;
grant all privileges on zabbixproxy.* to
zabbixproxy@localhost;
安装mycat
配置server Zabbix ,配置 scheme 分histoty表, 配置规则修改为两个表2,history1 , history 2
安装keepalived
配置keepalived.conf
添加instance
vrrp_instance VI_1 {
添加virtual_server 开启 8066 , 11051 , 10051 ,80
导入zabbix server 、 Zabbix proxy 表
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p Zabbix
zcat /usr/share/doc/zabbix-proxy-mysql*/create.sql.gz | mysql -uzabbixproxy -p zabbixproxy
修改数据库密码,修改proxy 端口
配置nginx 的zabbix.conf 去掉listen 和 server_name 的注释 ,修改默认配置的80端口
systemctl restart zabbix-server zabbix-agent nginx php-fpm Zabbix-proxy
在谷歌浏览器中打开192.168.9.180进行zabbix的安装(在低版本火狐看不到单选框)
安装完成
原文:https://www.cnblogs.com/liuhqsir/p/14728509.html