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 zabbix@localhost 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

安装zabbixCentos7.2安装zabbix3.0_第1张图片

在自己的浏览器输入 http://zabbix-server ip/zabbix

Centos7.2安装zabbix3.0_第2张图片Centos7.2安装zabbix3.0_第3张图片Centos7.2安装zabbix3.0_第4张图片Centos7.2安装zabbix3.0_第5张图片Centos7.2安装zabbix3.0_第6张图片Centos7.2安装zabbix3.0_第7张图片Centos7.2安装zabbix3.0_第8张图片Centos7.2安装zabbix3.0_第9张图片

进来之后发现时英文的,心里一阵不爽,必须要用中文的

点击右上角的人物,×××区域改成中文的。

 Centos7.2安装zabbix3.0_第10张图片Centos7.2安装zabbix3.0_第11张图片

返回来就是中文的了。