博客
关于我
zabbix监控安装
阅读量:585 次
发布时间:2019-03-11

本文共 1299 字,大约阅读时间需要 4 分钟。

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/zabbixhttp://IP/zabbix/setup.php

 

转载地址:http://ssltz.baihongyu.com/

你可能感兴趣的文章
hibernate正向生成数据库表以及配置——hibernate.cfg.xml
查看>>
javaWeb服务详解(含源代码,测试通过,注释) ——Emp的Dao层
查看>>
java实现人脸识别源码【含测试效果图】——Dao层(IUserDao)
查看>>
使用ueditor实现多图片上传案例——前台数据层(Index.jsp)
查看>>
ssh(Spring+Spring mvc+hibernate)——Dept.hbm.xml
查看>>
ssh(Spring+Spring mvc+hibernate)——updateEmp.jsp
查看>>
ssm(Spring+Spring mvc+mybatis)——saveDept.jsp
查看>>
ssm(Spring+Spring mvc+mybatis)——updateDept.jsp
查看>>
JavaScript操作BOM对象
查看>>
解决Chrome播放视频闪屏黑屏无法播放
查看>>
Git简单理解与使用
查看>>
echarts 基本图表开发小结
查看>>
二分查找.基于有序数组的查找方法.704
查看>>
制作JS验证码(简易)
查看>>
sklearn :ImportError: cannot import name ‘Imputer‘
查看>>
adb通过USB或wifi连接手机
查看>>
泛型机制 Generic
查看>>
包装类
查看>>
JDK9-15新特性
查看>>
集合继承结构
查看>>