zoukankan      html  css  js  c++  java
  • Centos7安装Zabbix3.0

    1.安装服务器端包

    #rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
    #yum clean all
    #yum install zabbix-server-mysql zabbix-web-mysql
    #yum -y install mariadb-server
    

    2.启动mariadb

    #systemctl start mariadb-server
    #systemctl enable mariadb-server
    

    3.创建zabbix数据库

    #cd /usr/share/doc/zabbix-server-mysql-3.0.3/
    #gunzip create.sql.gz 
    #mysql -uroot -p
    mysql> create database zabbix character set utf8 collate utf8_bin;
    mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbixpwd';
    mysql> quit;
    #mysql -uzabbix -pzabbixpwd zabbix < create.sql 
    

    4.修改zabbix配置文件

    #vim /etc/zabbix/zabbix_server.conf
    DBHost=localhost
    DBName=zabbix
    DBUser=zabbix
    DBPassword=zabbixpwd
    #systemctl start zabbix-server
    #systemctl enable zabbix-server
    

    5.关闭Selinux和火墙,当然你配通也可以

    #setenforce 0
    #systemctl stop firewalld
    

    6.修改http配置文件

    #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/Chongqing
    #systemctl enable httpd
    #systemctl start httpd
    

    7.Zabbix frontend is available at http://zabbix-frontend-hostname/zabbix in the browser.  (Default username/password is Admin/zabbix).  

    8.安装和配置客户端

    #rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
    #yum -y install zabbix-agent
    #vim /etc/zabbix/zabbix_agentd.conf
    Server=zabbix-server-ip
    #systemctl enable zabbix-agent
    #systemctl start zabbix-agent
    

    refer: https://www.zabbix.com/documentation/3.0/manual/installation/install_from_packages 

  • 相关阅读:
    【转载】Android IntentService使用全面介绍及源码解析
    【转载】作为Android开发者,你真的熟悉Activity吗?
    【转载】从使用到原理学习Java线程池
    Linux 基础知识+常见命令
    Python中的字典合并
    Python的__hash__函数和__eq__函数
    C#中实现Hash应用
    深入理解python元类
    Docker搭建Gitlab服务器
    python的加密方式
  • 原文地址:https://www.cnblogs.com/oskb/p/5535650.html
Copyright © 2011-2022 走看看