zabbix server environment platform
ZABBIX version 4.4
CentOS8
MySQL 8
# rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpm
# dnf clean all
b. Install Zabbix server, web front end, agent
# dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent
c. Create the initial database
# sudo yum -y install @mysql:8.0
Activate the MySQL service:
sudo systemctl status --now mysql
Confirm service status:
sudo systemctl status mysqld
Initialize MySQL database
mysql_secure_installation
Note, please make sure:
Set the password of the root user of the database.
Delete anonymous users.
Forbid root user to log in remotely.
Delete the test database and access it.
MySQL user root test access permissions:
# mysql -uroot -p
password
Create database
mysql> create database zabbix character set utf8 collate utf8_bin;
Create user
mysql> create user 'zabbix'@'%' identified by 'zabbix_Password'
Authorized user
mysql> grant all privileges on zabbix.* to 'zabbix'@'%'with grant option;
mysql> flush privileges;
mysql> quit;
Import the initial structure and data, the system will prompt you to enter the newly created password.
# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
d. Configure the database for Zabbix server
Edit the configuration file /etc/zabbix/zabbix_server.conf
DBPassword=password
e. Configure PHP for Zabbix frontend
Edit the configuration file /etc/php-fpm.d/zabbix.conf, uncomment and set the correct time zone
; php_value[date.timezone] = Asia/Shanghai
f. Start the Zabbix server and agent processes, and set them to start at boot:
# systemctl restart zabbix-server zabbix-agent httpd php-fpm
# systemctl enable zabbix-server zabbix-agent httpd php-fpm
Now your Zabbix server has been installed and started to run
Configure Zabbix frontend
Connect to the newly installed Zabbix frontend: http://server_ip_or_name/zabbix
Follow the steps in the Zabbix file: Install the front end
Can be viewed through the user data table
Default account: Admin
Default password: zabbix
Start using Zabbix
View the quick start guide
to sum up
The above is the installation of ZABBIX4.4 for CetnOS 8 brought to you by the editor, I hope it will help you!
Recommended Posts