zabbix 安裝(使用阿里雲的rpm包快速安裝)

  1. 使用阿里雲的rpm包安裝zabbix
# rpm -ivh https://mirrors.aliyun.com/zabbix/zabbix/4.3/rhel/7/x86_64/zabbix-release-4.3-3.el7.noarch.rpm
# yum install zabbix-server zabbix-web zabbix-server-mysql zabbix-web-mysql mariadb-server mariadb zabbix-agent -y

2.1 修改php時區配置

 # vim /etc/httpd/conf.d/zabbix.conf
        php_value date.timezone Asia/Shanghai
2.2 創建zabbix所用的數據庫並導入相關數據
# systemctl start mariadb.service 
# mysql
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
MariaDB [(none)]> grant all on zabbix.* to zabbix@'localhost' identified by '123123';
MariaDB [(none)]> exit

# cd /usr/share/doc/zabbix-server-mysql-4.4.0/
# zcat create.sql.gz | mysql -uzabbix -p123123 zabbix

2.3 修改zabbix配置

# vim /etc/zabbix/zabbix_server.conf 
DBHost=localhost     #數據庫所在主機
DBName=zabbix	     #數據庫名
DBUser=zabbix        #數據庫用戶名
DBPassword=123123    #數據密碼

2.4 啓動zabbix-server、zabbix-agent、httpd服務

# systemctl restart zabbix-server.service zabbix-agent httpd

2.5 訪問zabbix web安裝和配置

打開瀏覽器訪問(根據自己服務器的實際ip修改下面ip):
http://192.168.10.10/zabbix
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章