Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation and deployment of linux redhat7.0 zabbix4.0

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Chinese version installation manual https://www.zabbix.com/documentation/4.0/zh/manualzabbix Tsinghua source download address: https://mirrors.tuna.tsinghua.edu.cn/zabbix/ installation steps: 1. Download the rpm package that installs the release of zabbix (the yum source of zabbix will be automatically generated after installation) rpm- ivh https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpmrpm-ql zabbix-release to see if the installation is successful / etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX/etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 / etc/yum.repos.d/zabbix.repo/usr/share/doc/zabbix-release-4.0/usr/share/doc/zabbix-release-4.0/GPL2. Replace it with Tsinghua yum source (this is for fast download) vim / etc/yum.repos.d/ zabbix.repozabbix] name=Zabbix Official Repository-$basearchbaseurl= https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.0/rhel/7/$basearch/enabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591[zabbix-non-supported]name=Zabbix Official Repository non-supported-$basearchbaseurl= https://mirrors.tuna.tsinghua.edu.cn/zabbix/ Zabbix/4.0/rhel/7/$basearch/enabled=1gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIXgpgcheck=13. Install zabbix-server-mysql zabbix-web-mysqlyum install zabbix-server-mysql yum install zabbix-server-mysql- ymuri-if there is an error message error: software package: zabbix-server-mysql-3.0.25-1.el7.x86_64 (zabbix) need: libiksemel.so.3 () (64bit) error: soft Package: zabbix-server-mysql-3.0.25-1.el7.x86_64 (zabbix) need: fping--- solution: add epel.repo source vim / etc/yum.repo/ epel.repol [epel] name=Extra Packages for Enterprise Linux 7-$basearchbaseurl=http : / / mirrors.ucloud.cn/epel/7/$basearchfailovermethod=priorityenabled=1gpgcheck=1gpgkey= http://mirrors.ucloud.cn/epel/RPM-GPG-KEY-EPEL-7[epel-debuginfo]name=Extra Packages for Enterprise Linux 7-$basearch-Debugbaseurl= http://mirrors.ucloud.cn/epel/7/$basearch/debugfailovermethod=priorityenabled=0gpgkey=http://mirrors.ucloud.cn/epel/RPM-GPG-KEY-EPEL-7gpgcheck=1[epel-source]name=Extra Packages for Enterprise Linux 7-$basearch-Sourcebaseurl= http://mirrors.ucloud.cn/epel/7/SRPMSfailovermethod=priorityenabled=0gpgkey=http://mirrors.ucloud .cn / epel/RPM-GPG-KEY-EPEL-7gpgcheck=1--- if an error is reported: Error: Package: zabbix-server-mysql-3.4.15-1.el7.x86_64 (zabbix) Requires: libiksemel.so.3 () (64bit)- Solution: yum install-y http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/iksemel-1.4-6.sdl7.x86_64.rpm4, Install mariadbyum install mariadb-server-y # start mariadbsystemctl start mariadbsystemctl enable mariadb# security initialization database mysql_secure_installation# enter root password space # set root password n # remove anonymous users y # cancel root remote login permissions y # delete test library y# reset permissions table Y5, create zabbix database And set the character set to utf8create database zabbix character set utf8 collate utf8_bin Create the database, set the utf8grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';, set the password 6, import the initial data to the zabbix user's library zcat / usr/share/doc/zabbix-server-mysql*/create.sql.gz of mysql | mysql-uzabbix-pzabbix zabbixmysqluse zabbix; login zabbix user show tables Query whether the import is successful 7, modify the zabbix configuration file # vi / etc/zabbix/zabbix_server.confDBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=zabbix8, start the zabbix service systemctl restart zabbix-serversystemctl enable zabbix-server9, configure the zabbix front end (only need to add a time zone) vim / etc/httpd/conf.d/zabbix.confphp_value date.timezone Asia/Shanghai10, finally, perform the installation of the required service yum isntall httpd php php-mysql mariadb-ysystemctl start httpdsystemctl enable httpd11, and now zabbix can access *. * / zabbix

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report