您的位置:首页 > 运维架构 > Linux

Centos7.2安装zabbix3.0

2017-08-29 20:28 330 查看
 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

安装zabbix


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

















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

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

 




返回来就是中文的了。

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  centos7.2 zabbix3.0 linux