升级zmq 为4系列

salt的zmq 不是4 常常有点小问题 于是
官网
http://docs.saltstack.cn/zh_CN/latest/topics/installation/rhel.html
https://copr.fedoraproject.org/coprs/saltstack/zeromq4/
#先查看 可见一开始 为3.2.5
>>> import zmq
>>> print zmq.zmq_version()
3.2.5
yum remove zeromq python-zmq
cd /etc/yum.repos.d/
wget -c https://copr.fedoraproject.org/coprs/saltstack/zeromq4/repo/epel-6/saltstack-zeromq4-epel-6.repo
yum makecache
yum remove zeromq python-zmq

或者下面的直接下载rpm包
wget -c http://copr-be.cloud.fedoraproject.org/results/saltstack/zeromq4/epel-6-x86_64/zeromq-4.0.5-1.el5/zeromq-4.0.5-1.el6.x86_64.rpm
#和
wget -c http://copr-be.cloud.fedoraproject.org/results/saltstack/zeromq4/epel-6-x86_64/python-zmq-14.5.0-2.el5/python-zmq-14.5.0-2.el6.x86_64.rpm
rpm -ivh zeromq-4.0.5-1.el6.x86_64.rpm && rpm -ivh python-zmq-14.5.0-2.el6.x86_64.rpm

#bakup salt 其实不要也行 自己会备份的
cp -a /etc/salt/ etc-salt/
/usr/lib/python2.6/site-packages/salt/grains/core.py
yum install zeromq python-zmq salt-master
#查看结果 成功了
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import zmq
>>> print zmq.zmq_version()
4.0.5