安装要求 :https://www.zabbix.com/documentation/3.4/zh/manual/installation/requirements
官网文档 :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”设置为亚洲上海时区php_value date.timezone Asia/Shanghai
[root@localhost ~]#systemctl start httpd[root@localhost ~]#systemctl start zabbix-server [root@localhost ~]#systemctl start zabbix-agent
Zabbix前端可以在浏览器中通过 http://ip/zabbix 进行访问。
默认的用户名/密码为 Admin/zabbix。
在本地Windows电脑上拷贝一份字体(C:\Windows\Fonts)上传到服务器/usr/share/zabbix/fonts 目录下
把上传的字体后缀名修改为:.ttf
把zabbix默认的字体graphfont.ttf 修改为你上传的字体:
sed -i 's@graphfont@xxx@g' /usr/share/zabbic/include/defines.inc.php
来源:https://www.icode9.com/content-3-578501.html
联系客服