本文摘自zabbix官网
# rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-2.el7.noarch.rpm
# yum clean all
# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
mysql -uroot -p
password:
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
mysql> quit;
导入初始架构和数据,系统将提示您输入新创建的密码。
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
编辑配置文件 /etc/zabbix/zabbix_server.conf
DBPassword=password
编辑文件/etc/httpd/conf.d/zabbix.conf
,取消注释并为您设置正确的时区。
php_value date.timezone Asia/Shanghai
启动Zabbix server和agent进程,并为它们设置开机自启:
systemctl restart zabbix-server zabbix-agent httpd
systemctl enable zabbix-server zabbix-agent httpd
连接到新安装的Zabbix前端:http://server_ip_or_name/zabbix
根据Zabbix文件里步骤操作: Installing frontend
“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill
标 题:centos 安装zabbix