这是第一次安装配置,直接遭遇配置文件不明晰的大坑,因在编译阶段未指明配置文件路径,导致zabbix_server启动时直接读取默认的 /usr/local/zabbix/etc/zabbix_server.conf文件,而非 /etc/zabbix/*.conf,又是copy又是改配置项的值 全都是白忙活,zabbix_server根本不理这么一茬,导致后面问题排查时百思不得其解--明明都特么配对了 为啥子不按安排的套路走。。。最大的进步是在冤狱中不断改错前行。。。

 

  • 1、 zabbix 2.4.5 安装命令列表
# yum install php php-gd php-mysql php-bcmath php-mbstring php-xml curl curl-devel net-snmp net-snmp-devel perl-DBI // 一定先安装依赖
# cd /usr/local/src
# wget "http://nchc.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.4.5/zabbix-2.4.5.tar.gz"
# tar -xzvf zabbix-2.4.5.tar.gz
# cd zabbix-2.4.5
# ./configure --with-mysql=/usr/bin/mysql_config --with-net-snmp --with-libcurl --enable-server --enable-agent --enable-proxy --prefix=/usr/local/zabbix

# 【第二种编译策略,指定配置文件路径】

# ./configure ?enable-server ?enable-agent ?with-net-snmp ?with-libcurl ?with-mysql
 #?sysconfdir=/etc/zabbix/会指定篇配置文件目录,如果不写会默认在/usr/local/etc下


# make # make install

编译输出结果:

Configuration:

  Detected OS:           linux-gnu
  Install path:          /usr/local/zabbix
  Compilation arch:      linux

  Compiler:              gcc
  Compiler flags:        -g -O2  -I/usr/include/mysql -g  -m64 -fPIC  -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing        -I/usr/local/include -I/usr/lib64/perl5/CORE -I. -I/usr/include     

  Enable server:         yes
  Server details:
    With database:         MySQL
    WEB Monitoring:        cURL
    Native Jabber:         no
    SNMP:                  yes
    IPMI:                  no
    SSH:                   no
    ODBC:                  no
    Linker flags:          -rdynamic      -L/usr/lib64/mysql        -L/usr/lib64    
    Libraries:             -lm -ldl  -lresolv    -lmysqlclient         -lnetsnmp     -lcurl

  Enable proxy:          yes
  Proxy details:
    With database:         MySQL
    WEB Monitoring:        cURL
    SNMP:                  yes
    IPMI:                  no
    SSH:                   no
    ODBC:                  no
    Linker flags:          -rdynamic      -L/usr/lib64/mysql       -L/usr/lib64    
    Libraries:             -lm -ldl  -lresolv    -lmysqlclient        -lnetsnmp     -lcurl

  Enable agent:          yes
  Agent details:
    Linker flags:          -rdynamic     
    Libraries:             -lm -ldl  -lresolv     -lcurl

  Enable Java gateway:   no

  LDAP support:          no
  IPv6 support:          no

***********************************************************
*            Now run 'make install'                       *
*                                                         *
*            Thank you for using Zabbix!                  *
*              <http://www.zabbix.com>                    *
***********************************************************
View Code 显示编译输出结果

相关文章:

  • 2021-12-07
  • 2022-01-03
  • 2021-08-17
  • 2021-12-27
  • 2021-09-17
  • 2022-01-14
  • 2021-09-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2021-04-28
  • 2021-05-28
相关资源
相似解决方案