1. 程式人生 > >Centos7.2安裝zabbix3.0

Centos7.2安裝zabbix3.0

centos7.2 zabbix3.0

Centos7.2YUM安裝zabbix3.0

防火墻和selinux關閉,這個我就不說了。

1.啟動apache

yum -y install httpd

systemctl start httpd.service

systemctl enable httpd.service

systemctl status httpd.service

2. 啟動mariadb

yum install mariadb mariadb-server -y

systemctl start mariadb

systemctl enable mariadb

mysql_secure_installation

Set root password? [Y/n]

New password:

Re-enter new password:

Remove anonymous users? [Y/n]

Disallow root login remotely? [Y/n]

Remove test database and access to it? [Y/n]

Reload privilege tables now? [Y/n]

3.安裝php

yum -y install php

yum install php-mysql -y

systemctl restart httpd

4. 配置yun源

rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

5. 安裝服務器端包

yum install -y zabbix-server-mysql zabbix-web-mysql zabbix-agent mariadb-server

6.初始化數據庫

mysql -u root –p

create database zabbix character set utf8 collate utf8_bin;

grant all privileges on zabbix.* to [email protected] identified by ‘zabbix‘;

exit

7. cd /usr/share/doc/zabbix-server-mysql-3.0.10

zcat create.sql.gz | mysql -u root -p zabbix

8.啟動zabbix

vim /etc/zabbix/zabbix_server.conf

在末尾加上以下這些

DBHost=localhost

DBName=zabbix

DBUser=zabbix

DBPassword=zabbix

vim /etc/httpd/conf.d/zabbix.conf

php_value max_execution_time 300

php_value memory_limit 128M

php_value post_max_size 16M

php_value upload_max_filesize 2M

php_value max_input_time 300

php_value always_populate_raw_post_data -1

php_value date.timezone Asia/Shanghai

systemctl start zabbix-server

systemctl enable zabbix-server

安裝zabbix技術分享

在自己的瀏覽器輸入 http://zabbix-server ip/zabbix

技術分享技術分享技術分享技術分享技術分享技術分享技術分享技術分享

進來之後發現時英文的,心裏一陣不爽,必須要用中文的

點擊右上角的人物,黃色區域改成中文的。

技術分享技術分享

返回來就是中文的了。


本文出自 “dpf” 博客,請務必保留此出處http://dpf51.blog.51cto.com/13253697/1961919

Centos7.2安裝zabbix3.0