almalinux8.1 +zabbix server7

黑色月牙發表於2024-10-11

[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

根據提示進行安裝

 

zabbix介面初始化問題處理
#ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
#介面中localhost改為127.0.0.1

  

相關文章