码迷,mamicode.com
首页 > 其他好文 > 详细

zabbix2.4.2源码安装

时间:2014-12-23 06:52:23      阅读:362      评论:0      收藏:0      [点我收藏+]

标签:zabbix server   mysql

一、安装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源码安装

标签:zabbix server   mysql

原文地址:http://hanyun.blog.51cto.com/1060170/1592783

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!