centos7.2 安装zabbix3.0详解
关闭防火墙:systemctl stop firewalld.servicesystemctl disable firewalld.service 关闭selinux:# setenforce 0 # sed -i'/SELINUX/s/enforcing/disabled/' /etc/selinux/config配置yun源rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm安装服务器端包yum install -y zabbix-server-MySQLzabbix-web-mysqlzabbix-agentmariadb-server启动mariadbsystemctl start mariadbsystemctl enable mariadb
创建zabbix数据库mysql -uroot -p
Enter password: ##输入MySQL密码,默认为空
create database zabbix character set utf8 collate utf8_bin;
##创建数据库zabbix,并且数据库编码使用utf8grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix2016';
##允许账户能从本机连接至数据库zabbix
quit;
导入初始模式和数据cd /usr/share/doc/zabbix-server-mysql-3.0.6/zcat create.sql.gz |mysql -uroot zabbix
vim /etc/zabbix/zabbix_server.conf91:DBName=zabbix107:DBUser=zabbix116:DBPassword=zabbix2016
systemctl start zabbix-serversystemctl enable zabbix-server
vim /etc/httpd/conf.d/zabbix.conf php_valuemax_execution_time 300 php_valuememory_limit 128M php_valuepost_max_size 16M php_valueupload_max_filesize 2M php_valuemax_input_time 300 php_valuealways_populate_raw_post_data -1 #php_value date.timezone Europe/Riga php_valuedate.timezone Asia/Shanghai
systemctl start httpd.servicesystemctl enable httpd.servicehttp://ip地址/zabbix/setup.php
安装和配置客户端rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpmyum -y install zabbix-agentvim /etc/zabbix/zabbix_agentd.confServer=zabbix-server-ipsystemctl enable zabbix-agentsystemctl start zabbix-agent
页:
[1]