亲宝软件园·资讯

展开

zabbix监控安装 linux 中zabbix监控安装方法

肖亚飞 人气:0
想了解linux 中zabbix监控安装方法的相关内容吗,肖亚飞在本文为您仔细讲解zabbix监控安装的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:zabbix监控安装,zabbix,监控linux,下面大家一起来学习吧。

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

总结

以上所述是小编给大家介绍的linux 中zabbix监控安装方法,希望对大家有所帮助,如果大家有任何疑问欢迎给我留言,小编会及时回复大家的!

加载全部内容

相关教程
猜你喜欢
用户评论