首页 > 代码库 > zabbix2.4.2源码安装
zabbix2.4.2源码安装
一、安装mysql-5.6.21(通用二进制)
useradd -r mysql
mkdir -p /data/mysql
chown -R mysql.mysql /data/mysql
tar xvzf zabbix-2.4.2.tar.gz -C /usr/local/
ln -s mysql-5.6.21-linux-glibc2.5-x86_64/ mysql
cd mysql
chown -R root.mysql ./*
scripts/mysql_install_db --user=mysql --datadir=/data/mysql --explicit_defaults_for_timestamp
cp support-files/mysql.server /etc/init.d/mysqld
cp support-files/my-default.cnf /etc/my.cnf
vi /etc/my.cnf
echo "/usr/local/mysql/lib" > /etc/ld.so.conf.d/mysql.conf && ldconfig -v
ln -s /usr/local/mysql/include /usr/include/mysql
chkconfig mysqld on
service mysqld start
二、安装zabbix-2.4.2(源码包)
useradd -r zabbix
yum install -y libcurl libcurl-devel libxml2 libxml2-devel gcc gcc-c++ net-snmp-devel
./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
make install
本文出自 “hanyun.fang” 博客,请务必保留此出处http://hanyun.blog.51cto.com/1060170/1592783
zabbix2.4.2源码安装