almalinux8.1 +zabbix server7

复制代码

[root@wjw-monitor ~]# cat /etc/redhat-release
AlmaLinux release 8.10 (Cerulean Leopard)
[root@wjw-monitor ~]# uname -a
Linux wjw-monitor 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux

#yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
#sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|' /etc/yum.repos.d/epel.repo
#sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*

复制代码

 

 

 

 

 

https://downloads.mysql.com/archives/community/

 

 

 

 

复制代码
#mv mysql-8.4.0-linux-glibc2.28-x86_64.tar.xz /usr/local/
#cd !$
#tar -xvJf mysql-8.4.0-linux-glibc2.28-x86_64.tar.xz
#mv mysql-8.4.0-linux-glibc2.28-x86_64 mysql-8.4.0
#cd !$
#groupadd mysql
#useradd -g mysql mysql
#chown -R mysql.mysql /usr/local/mysql-8.4.0
#cd bin/
#./mysqld --user=mysql --basedir=/usr/local/mysql-8.4.0 --datadir=/usr/local/mysql-8.4.0/data --lower-case-table-names=1 --initialize

#cat /etc/my.cnf 
[mysqld]
user=mysql
basedir=/usr/local/mysql
datadir=/data/mysql/data
socket=/tmp/mysql.sock
server_id=6
port=3306
[mysql]
socket=/tmp/mysql.sock


# cat /etc/systemd/system/mysqld.service
[Unit]
Description=MySQL Server
Documentation=man:mysqld(8)
Documentation=http://dev.mysql.com/doc/refman/en/using-systemd.html
After=network.target
After=syslog.target
[Install]
WantedBy=multi-user.target
[Service]
user=mysql
group=mysql
ExecStart=/usr/local/mysql-8.4.0/bin/mysqld --defaults-file=/etc/my.cnf
LimitNOFILE = 5000

#systemctl start mysqld.service
#systemctl enable mysqld.service
复制代码

 

 

 

https://www.zabbix.com/cn/download?zabbix=7.0&os_distribution=alma_linux&os_version=8&components=server_frontend_agent&db=mysql&ws=nginx

 根据提示进行安装

 

 

1
2
3
zabbix界面初始化问题处理
#ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
#界面中localhost改为127.0.0.1

  

 

posted @   黑色月牙  阅读(28)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· CSnakes vs Python.NET:高效嵌入与灵活互通的跨语言方案对比
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· Plotly.NET 一个为 .NET 打造的强大开源交互式图表库
· 上周热点回顾(2.17-2.23)
点击右上角即可分享
微信分享提示