zoukankan      html  css  js  c++  java
  • centos7.5配置zabbix3.0

    1.准备操作系统
    操作系统为centos7.5最小化安装
    2.初始化操作系统
    2.1 关闭firewalld
    systemctl stop firewalld && systemctl disable firewalld
    2.2 关闭selinux
    setenforce 0
    sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config
    2.3 修改文件描述符
    echo "* soft nofile 65536" >> /etc/security/limits.conf
    echo "* hard nofile 65536" >> /etc/security/limits.conf
    echo "* soft nproc 65536" >> /etc/security/limits.conf
    echo "* hard nproc 65536" >> /etc/security/limits.conf
    3.配置yum源
    4.使用yum安装:mariadb-server zabbix-server php httpd
    yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get zabbix-java-gateway zabbix-sender php56w mariadb-server
    # yum install --downloadonly --downloaddir=/root/yum/ mariadb-server httpd zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-get zabbix-java-gateway zabbix-sender php56w (注)
    5.初始化mariadb-server
    5.1 启动
    systemctl start mariadb
    5.2 开机自启动
    systemctl enable mariadb
    5.3 初始化mysql
    输入:mysql
    use mysql;
    update user set password=PASSWORD("mvtech123") where user='root';
    grant all privileges on *.* to root@"%" identified by "mvtech123";
    delete from mysql.user where user = '';
    CREATE DATABASE `zabbix` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
    grant all privileges on zabbix.* to zabbix@"localhost" identified by "zabbix";
    flush privileges;
    5.4 导入zabbix库
    zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p'zabbix' zabbix
    6.修改配置文件
    6.1 修改php.ini
    [root@localhost etc]# cat /etc/php.ini
    [PHP]
    max_execution_time = 300
    max_input_time = 300
    memory_limit = 128M
    post_max_size = 16M
    upload_max_filesize = 2M
    always_populate_raw_post_data = -1
    date.timezone = Asia/Shanghai
    expose_php = Off
    short_open_tag = On
    6.2 修改/etc/zabbix/zabbix_server.conf
    DBPassword=zabbix
    6.3 cat /etc/httpd/conf.d/zabbix.conf
    php_value date.timezone Asia/Shanghai
    6.4 修改权限
    cp -r /usr/share/zabbix/ /var/www/html/ chown -R zabbix:zabbix /etc/zabbix/ chown -R zabbix:zabbix /var/www/html/zabbix chown -R zabbix:zabbix /usr/lib/zabbix/ chmod -R 777 /etc/zabbix/web/ chmod -R 777 /var/lib/php/session/
    7.启动服务
    7.1启动zabbix-server
    systemctl start zabbix-server && systemctl enable zabbix-server
    7.2启动httpd
    systemctl start httpd && systemctl enable httpd
    8 初始化web
    8.1 如下图页面:点击:Next step
    8.2 弹出下图:点击:Next step
    8.3 弹出下图:点击 :Next step
    8.4 弹出下图:点击 :Next step
    8.5 弹出下图:点击 :Next step
    8.6 弹出下图,点击Finish
    9 登陆系统
    http://ip/zabbix 用户名:Admin 密码:zabbix
    9.1 输入登陆信息
    9.2 跳转到下图,点击下图处
    9.3 修改中文,点击update
  • 相关阅读:
    IntelliJ IDEA 14.03 java 中文文本处理中的编码格式设置
    应聘感悟
    STL string分析
    CUDA SDK VolumeRender 分析 (1)
    BSP
    CUDA SDK VolumeRender 分析 (3)
    CUDA SDK VolumeRender 分析 (2)
    Windows软件发布时遇到的一些问题
    Ten Commandments of Egoless Programming (转载)
    复习下光照知识
  • 原文地址:https://www.cnblogs.com/sdhzdtwhm/p/9619485.html
Copyright © 2011-2022 走看看