haproxy,tengine,redis,rpm 打包


https://github.com/itnihao/zabbix-rpm/tree/master/zabbix-2.2.0

wget https://github.com/itnihao/zabbix-rpm/blob/master/zabbix-2.2.6/zabbix-2.2.6-0.el6.zbx.src.rpm?raw=true

su - admin

mkdir -pv rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}

echo "% _topdir  /home/admin/rpmbuild" >~/.rpmmacros

cp zabbix-2.2.6-0.el6.zbx.src.rpm  rpmbuild/SOURCES/

cd rpmbuild/SOURCES/

rpm2cpio zabbix-2.2.6-0.el6.zbx.src.rpm |cpio -div

mv zabbix2.2.6.spec  ../SPECS/

cd ../SPECS/

vim zabbix2.2.6.spec

yum install -y gcc make mysql-devel openldap-devel libssh2-devel net-snmp-devel curl-devel unixODBC-devel OpenIPMI-devel java-devel

rpmbuild -ba zabbix2.2.6.spec




你可能感兴趣的:(agent,zabbix)