1/安装zabbix源
# rpm -i https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
注:报错 /var/tmp/rpm-tmp.yKw9ru: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
则说明系统已经安装过zabbix源了可以使用rpm -qa | grep zabbix查看已经安装的源
2/安装zabbixF服务、web页面、代理服务
# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
3/启动mariadb(MySQL)服务
# yum install -y mariadb-server
# service mariadb start
4/建立初始化数据库
# mysql -uroot
MariaDB > create database zabbix character set utf8 collate utf8_bin;
MariaDB > grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
MariaDB [(none)]>
5/导入初始化数据
# zcat /usr/share/doc/zabbix-server-mysql-3.0.13/create.sql.gz|mysql -uzabbix -pzabbix zabbix
6/设置配置文件中密码
Edit file /etc/zabbix/zabbix_server.conf
# vi /etc/zabbix/zabbix_server.conf
DBPassword=password
7/配置时区
Edit file /etc/httpd/conf.d/zabbix.conf, uncomment and set the right timezone for you.
# php_value date.timezone Europe/Riga
8/启动zabbix-server和zabbix-process 并设置开机启动
# systemctl restart zabbix-server zabbix-agent httpd
# systemctl enable zabbix-server zabbix-agent httpd
9/访问zabbix页面
http://server_ip/zabbix
用户名Admin 密码zabbix
网友评论