Centos7.2安装zabbix3.0
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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的主要内容,如果未能解决你的问题,请参考以下文章