zabbix监控安装

Posted 每天进步一点点

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了zabbix监控安装相关的知识,希望对你有一定的参考价值。

1、关闭iptables和selinux

# systemctl stop firewalld
# systemctl disable firewalld
# setenforce 0

2、安装yum源

# cd /etc/yum.repos.d
# yum -y install wget
# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
# yum clean all 
# yum makecache

3、安装LAMP

3.1、安装mysql

# yum -y install mariadb mariadb-server
# systemctl start mariadb
# systemctl enable mariadb
# mysql_secure_installation

3.2、安装apache

# yum -y install httpd
# systemctl start httpd
# systemctl enable httpd

3.3、安装php

# yum -y install php php-mysql

4、安装zabbix

# rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
# yum -y install zabbix-server-mysql zabbix-web-mysql
# yum -y install zabbix-agent
# mysql -uroot -p
mysql>create database zabbix character set utf8 collate utf8_bin;
mysql>grant all privileges on zabbix.* to [email protected] identified by ‘zabbix‘;
# cd /usr/share/doc/zabbix-server-mysql-3.2.1
# zcat create.sql.gz | mysql -uroot -p zabbix

5、修改配置文件

# vim /etc/php.ini
        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 date.timezone Asia/Shanghai    
# systemctl restart httpd

6、登陆zabbix,账号Admin,密码zabbix

http://IP/zabbix
http://IP/zabbix/setup.php

 

以上是关于zabbix监控安装的主要内容,如果未能解决你的问题,请参考以下文章

zabbix安装后怎么添加监控

NO.A.0005.zabbix_lnmp+zabbix.agent.编译安装/批量监控和100台设备/自动发现

(十四)Zabbix_服务器监控JVM服务

linux监控平台介绍zabbix监控介绍安装zabbix

zabbix监控,Zabbix4.0安装配置,Linux监控

zabbix监控安装及实现对tomcat服务器监控