CetntOS yum安裝zabbix3.0
阿新 • • 發佈:2017-05-23
zabbix
服務端:
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm rpm -ivh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm yum install zabbix-server zabbix-web zabbix-server-mysql zabbix-web-mysql zabbix-agent -y yum install -y mysql-server mysql service mysqld start
vim /etc/my.cnf [mysqld] character-set-server= utf8 init-connect=‘SET NAMES utf8‘ collation-server=utf8_general_ci
service mysqld restart
mysql -u root create database zabbix character set utf8 collate utf8_bin; grant all on zabbix.* to [email protected] identified by ‘zabbix‘;
cd /usr/share/doc/zabbix-server-mysql-3.0.9 gunzip create.sql.gz
mysql -u root use zabbix source create.sql;
cd /etc/httpd/conf.d/ vim zabbix.conf php_value date.timezone Asia/Shanghai
vim /etc/zabbix/zabbix_server.conf DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=zabbix
service httpd restart service zabbix-server start
瀏覽器訪問ip/zabbix
修改默認改密碼
客戶端:
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm yum install zabbix-agent -y
vim /etc/zabbix/zabbix_agentd.conf Server=服務端ip
service zabbix-agent start
CetntOS yum安裝zabbix3.0