Skip to content Skip to main navigation Skip to footer

CentOS/Linux: 如何升级ZMQ2.x 到 ZMQ 4.x

当你在 CentOS 系统下安装完salt-minion后,启动salt服务的时候会产生下面的警告信息:
[WARNING ] You have a version of ZMQ less than ZMQ 3.2! There are known connection keep-alive issues with ZMQ < 3.2 which may result in loss of contact with minions. Please upgrade your ZMQ!
那么如何在解决这个问题呢?产生这个问题的原因是因为salt-master版本用的是ZMQ 3, 而salt-miniton则用的是ZMQ 2.2, 这样就会导致它们之间的通信会有问题。所以解决问题的方法就是升级ZMQ的版本为ZMQ 3以上。
linux操作系统
首先,我们需要下载下面的两个文件,并升级安装,输入下面的命令:
[cc lang=”vim”] $sudo wget http://copr-be.cloud.Fedoraproject.org/results/saltstack/zeromq4/epel-5-x86_64/zeromq-4.0.4-2.el5/zeromq-4.0.4-2.el5.x86_64.rpm
$ sudo wget http://copr-be.cloud.fedoraproject.org/results/saltstack/zeromq4/epel-5-x86_64/python-zmq-14.3.1-3.el5/python26-zmq-14.3.1-3.el5.x86_64.rpm
[/code]  
升级安装刚才下载的包:

$sudo rpm -Uvh python26-zmq-14.3.1-3.el5.x86_64.rpm zeromq-4.0.4-2.el5.x86_64.rpm
 

下一步,需要重启salt-minion,输入下面的命令:
[cc lang=”php”] $sudo /etc/init.d/salt-minion restart
[/code]  

0 Comments

There are no comments yet

Leave a comment

Your email address will not be published.