首页 > 代码库 > zabbix2.4.2源码安装

zabbix2.4.2源码安装

一、安装mysql-5.6.21(通用二进制)

  1. useradd -r mysql

  2. mkdir -p /data/mysql

  3. chown -R mysql.mysql /data/mysql

  4. tar xvzf zabbix-2.4.2.tar.gz -C /usr/local/

  5. ln -s mysql-5.6.21-linux-glibc2.5-x86_64/ mysql

  6. cd mysql

  7. chown -R root.mysql ./*

  8. scripts/mysql_install_db --user=mysql --datadir=/data/mysql --explicit_defaults_for_timestamp

  9. cp support-files/mysql.server /etc/init.d/mysqld

  10. cp support-files/my-default.cnf /etc/my.cnf

  11. vi /etc/my.cnf

  12. echo "/usr/local/mysql/lib" > /etc/ld.so.conf.d/mysql.conf && ldconfig -v

  13. ln -s /usr/local/mysql/include /usr/include/mysql

  14. chkconfig mysqld on

  15. service mysqld start


二、安装zabbix-2.4.2(源码包)

  1. useradd -r zabbix

  2. yum install -y libcurl libcurl-devel libxml2 libxml2-devel gcc gcc-c++ net-snmp-devel

  3. ./configure --prefix=/usr/local/zabbix-2.4.2 --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl --with-libxml2

  4. make install


本文出自 “hanyun.fang” 博客,请务必保留此出处http://hanyun.blog.51cto.com/1060170/1592783

zabbix2.4.2源码安装