zabbix的下载与配置
生活随笔
收集整理的這篇文章主要介紹了
zabbix的下载与配置
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、配置yum倉庫
[zabbix] name=Zabbix Official Repository - $basearch baseurl=https://mirrors.aliyun.com/zabbix/zabbix/4.0/rhel/7/x86_64/ enabled=1 gpgcheck=0[zabbix-non-supported] name=Zabbix Official Repository non-supported - $basearch baseurl=https://mirrors.aliyun.com/zabbix/non-supported/rhel/7/x86_64/ enabled=1 gpgcheck=0
二、安裝zabbix以及zabbix相關包
[root@server5 ~]# yum install zabbix-agent zabbix-server-mysql zabbix-web \3. 安裝mariabd數據庫,創建zabbix用戶
[root@server5 ~]# yum install mariadb-server -y [root@server5 ~]# systemctl start mariadb [root@server5 ~]# mysql -p Enter password: #Welcome to the MariaDB monitor. Commands end with ; or \g. #Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin; Query OK, 1 row affected (0.00 sec)MariaDB [(none)]> create user 'zabbix'@'localhost' identified by 'westos'; Query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> grant all privileges on zabbix.* to 'zabbix'@'localhost'; Query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> quit Bye
編輯zabbix配置文件,添加zabbix用戶名和密碼,并開啟
root@server5 ~]# cd /etc/zabbix/ [root@server5 zabbix]# ls web zabbix_agentd.conf zabbix_agentd.d zabbix_server.conf [root@server5 zabbix]# vi zabbix_server.conf [root@server5 zabbix]# grep -v ^# zabbix_server.conf |uniq DBName=zabbixDBUser=zabbixDBPassword=westos[root@server5 zabbix]# systemctl start zabbix-server [root@server5 zabbix]# systemctl enable --now zabbix-server Created symlink from /etc/systemd/system/multi-user.target.wants/z-> ->abbix-server.service to /usr/lib/systemd/system/zabbix-server.service.
總結
以上是生活随笔為你收集整理的zabbix的下载与配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 卸载鲁大师后 计算机无法启动项,win7
- 下一篇: 【软考系统架构设计师】第八章 Web架构