安裝要求 :https://www.zabbix.com/documentation/3.4/zh/manual/installation/requirements
官網(wǎng)文檔 :https://www.zabbix.com/documentation/3.4/zh/manual/installation
[root@localhost ~]#rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.noarch.rpm
[root@localhost ~]#yum-config-manager --enable rhel-7-server-optional-rpms
[root@localhost ~]#yum -y install zabbix-server-mysql zabbix-web-mysql
[root@localhost ~]#yum -y install zabbix-server zabbix-agent
[root@localhost ~]#yum -y install mairadb mariadb-server[root@localhost ~]#systemctl start mariadb[root@localhost ~]#mysql -u root -pMariaDB > create database zabbix character set utf8;MariaDB > grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by 'zabbix' with grant option;MariaDB > flush privileges;MariaDB > quit;
[root@localhost ~]#cd /usr/share/doc/zabbix-server-mysql-3.4.15[root@localhost ~]#zcat create.sql.gz | mysql -uzabbix -p zabbix
[root@localhost ~]#vim /etc/zabbix/zabbix_server.confLogFile=/var/log/zabbix/zabbix_server.logLogFileSize=0PidFile=/var/run/zabbix/zabbix_server.pidSocketDir=/var/run/zabbixDBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=zabbixSNMPTrapperFile=/var/log/snmptrap/snmptrap.logTimeout=4AlertScriptsPath=/usr/lib/zabbix/alertscriptsExternalScripts=/usr/lib/zabbix/externalscriptsLogSlowQueries=3000
[root@localhost ~]#vim /etc/httpd/conf.d/zabbix.conf#取消注釋“date.timezone”設(shè)置為亞洲上海時(shí)區(qū)php_value date.timezone Asia/Shanghai
[root@localhost ~]#systemctl start httpd[root@localhost ~]#systemctl start zabbix-server [root@localhost ~]#systemctl start zabbix-agent
Zabbix前端可以在瀏覽器中通過(guò) http://ip/zabbix 進(jìn)行訪問(wèn)。
默認(rèn)的用戶(hù)名/密碼為 Admin/zabbix。
在本地Windows電腦上拷貝一份字體(C:\Windows\Fonts)上傳到服務(wù)器/usr/share/zabbix/fonts 目錄下
把上傳的字體后綴名修改為:.ttf
把zabbix默認(rèn)的字體graphfont.ttf 修改為你上傳的字體:
sed -i 's@graphfont@xxx@g' /usr/share/zabbic/include/defines.inc.php
來(lái)源:https://www.icode9.com/content-3-578501.html
聯(lián)系客服