zoukankan      html  css  js  c++  java
  • centos7安装zabbix

    关闭SeLinux
    临时关闭:setenforce 0
    永久关闭修改/etc/selinux/config中***********为disabled
    关闭防火墙
    systemctl stop firewalld

    1.安装apache

    yum -y install httpd

    systemctl enable httpd
    systemctl start httpd


    2.安装mysql
    yum -y install  mariadb mariadb-server
    systemctl enable mariadb
    systemctl start mariadb

    mysql查看是否安装成功


    3.安装php环境

    yum -y install php php-mysql


    4.安装zabbix

    wget http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm

    rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm

    yum -y install zabbix-server-mysql zabbix-get zabbix-web zabbix-web-mysql zabbix-agent zabbix-sender


    5.进入mysql,创建一个zabbix库并设置为utf8的字符编码格式

    mysql


    > create database zabbix character set utf8 collate utf8_bin;

    创建账户并且授权设置密码为zabbix


    > grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
    给来自loclhost的用户zabbxi分配可对数据库zabbix所有表进行所有操作的权限,并且设定密码为zabbix

    > flush privileges;刷新

    > exit


    6.导入表

    cd /usr/share/doc/zabbix-server-mysql-3.2.10/ ###目录看自行安装版本
    gunzip create.sql.gz  解压

    mysql 打开mysql

    > use zabbix; 切换数据库

    > source create.sql 导入解压的sql文件

    > exit


    7.配置zabbix server配置文件
    cd /etc/zabbix

    vim zabbix_server.conf

     

     

     

     

    systemctl start zabbix-server.service    运行zabbix-server服务

    systemctl enable zabbix-server.service    开机自启zabbix-server服务

    8.配置php

    cd /etc/httpd/conf.d

    vim zabbix.conf   配置时间

     systemctl restart httpd   重启httpd服务

    9.登录zabbix

    网址栏输入  IP/zabbix

    数据库密码:zabbix

    登录账号:Admin   密码:zabbix

    ——————————————————————————————————————————————————————————————

    原文网址  https://www.cnblogs.com/yangtaoshu/p/12629150.html





















  • 相关阅读:
    微信小程序-开发入门(一)
    Vue入门
    美化input type=range标签滑动样式(带渐变效果)
    全新的css网站布局--Grid布局
    移动端布局与样式上的坑
    swiper 下拉刷新混乱
    子元素scroll父元素容器不跟随滚动JS实现
    解决前端页面闪烁问题(转载)
    VUE 与其他常见前端框架对比
    移动端表层div滑动,导致底层body滑动(touchmove的阻止)
  • 原文地址:https://www.cnblogs.com/shenyuanhaojie/p/14134431.html
Copyright © 2011-2022 走看看