zoukankan      html  css  js  c++  java
  • Centos 8 安装zabbix 爬坑

    1.安装mininal 8


    2.配置静态网络
    BOOTPROTO=static
    IPADDR=192.168.2.1
    NETMASK=255.255.255.0
    GATEWAY=192.168.2.200
    DNS1=192.168.22.252


    3.重启网络配置,先重载再up

    nmcli connection reload
    nmcli connection up ens33
    nmcli networking off
    nmcli networking on
    nmcli device show


    4.禁用防火墙
    systemctl stop firewalld
    systemctl disable firewalld.service
    #setenforce 0
    #getenforce
    Permissive
    #vi /etc/selinux/config
    SELINUX=disable

    ###########SELINUX关闭,这是会忽略的一个地方,导致页面打开时候一直提示服务器无法连接


    5.安装mysql
    dnf install -y @mysql
    systemctl start mysqld.service
    systemctl enable mysqld.service
    初始化mysql
    mysql_secure_installation
    create user zabbix@localhost identified by '1234.Com!';


    6.安装zabbix
    https://www.zabbix.com/download?zabbix=5.2&os_distribution=red_hat_enterprise_linux&os_version=8&db=mysql&ws=apache
    /etc/zabbix/zabbix_server.conf
    DBPassword
    /etc/php-fpm.d/zabbix.conf
    php_value[date.timezone] = Asia/Shanghai
    #前面有;标识注释

    tzselect
    4 –> 9–>1–>1–>ok
    然后执行下面这两条命令
    rm /etc/localtime
    ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime


    systemctl start zabbix-server zabbix-agent httpd php-fpm
    systemctl stop zabbix-agent httpd php-fpm zabbix-server
    systemctl restart mysqld

  • 相关阅读:
    洛谷 P1919 【模板】A*B Problem升级版(FFT快速傅里叶)
    Codeforces Goodbye 2018
    ubuntu 百度云
    【UOJ 351】新年的叶子
    【SDOI2008】仪仗队
    NOI 2002 贪吃的九头龙
    最大获利
    codeforces 814E An unavoidable detour for home
    codeforces 814D An overnight dance in discotheque
    bzoj3191 [JLOI2013]卡牌游戏
  • 原文地址:https://www.cnblogs.com/lijifei/p/13950042.html
Copyright © 2011-2022 走看看