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 use of Zabbix server

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Environment:

Centos7

Vmware virtual machine

IP:192.168.213.130

Zabbix official download website https://www.zabbix.com/download, there is a brief installation process.

Install the Zabbix library

# rpm-Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm

# yum clean all

Yum installs zabbix-server package and mysql database

# yum install zabbix-server zabbix-agent mariadb mariadb-server httpd zabbix-server-mysql zabbix-web-mysql-y

Add firewall configuration and turn off selinux

# firewall-cmd-list-all (check all the ports and services released by the firewall, you can see that only ssh and dhcpv6 have been released)

# firewall-cmd-add-service=http-permanent

# firewall-cmd-add-port=10050/tcp-permanent

# firewall-cmd-add-port=10051/tcp-permanent

# firewall-cmd-reload

Check again

# firewall-cmd-list-all

Close selinux

# vim / etc/selinux/config

# setenforce 0 is modified to take effect immediately

Start the database, initialize the database, create the database, and import the data and schema.

1. Start the database and add auto-boot

# systemctl start mariadb

# systemctl enable mariadb (add boot boot)

two。 Initialize the database

# mysql_secure_installation

3. Create a database

# mysql-uroot-p

Password (database root password)

Mysql > create database zabbix character set utf8 collate utf8_bin

Mysql > grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'

Mysql > quit

4. Import data and schemas

# zcat / usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql-uzabbix-p zabbix

5. Edit the configuration file

1. Modify zabbix-server configuration file

# vim / etc/zabbix/zabbix_server.conf

Find line 124 to uncomment and enter the zabbix account password

two。 Modify the front-end php file for zabbix

# vim / etc/httpd/conf.d/zabbix.conf

Find line 20 to uncomment and change it to China time zone

6. Start http and zabbix services

# systemctl restart zabbix-server.service

# systemctl enable zabbix-server.service

# systemctl restart httpd

# systemctl enable httpd

# systemctl start zabbix-agent.service

# systemctl enable zabbix-agent.service

7. Configure zabbix server on web management page

Open 192.168.213.130/zabbix in the browser, and if the above actions are correct, the following page will appear.

Check configuration

Link the database information and enter the password of the database zabbix account

Enter the default administrator account password Admin/zabbix

At this point, the zabbix server installation is complete.

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