分布式可视化爬虫之-rabbitmq安装

rabbitmq是一个队列,主要是celery用来做中间件的东西。话说celery的作者好像也是rabbitmq公司的,所以对rabbitmq的支持就知道啦,不过在这里提醒一下,不要让backend用rabbitmq来做,因为每一次任务返回都会产生一个队列,如果队列太多会造成通讯问题。

下面开始具体的安装,版本是centos7

安装erlang,写rabbitmq的语言

erlang下载,通过这里找到合适的erlang版本,下载对应的rpm

>wget https://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_19.1.5~centos~7_amd64.rpm
安装,下载的rpm安装包名称
>rpm -i esl-erlang_19.1.5-centos-7_amd64 (1).rpm
这时候会出现下面的错误
warning: esl-erlang_17.0-1~centos~6_i386.rpm: Header V4 RSA/SHA1 Signature, key ID a14f4fca: NOKEY error: Failed dependencies: libodbc.so.2 is needed by esl-erlang-17.0-1.i686 libwx_baseu-2.8.so.0 is needed by esl-erlang-17.0-1.i686 libwx_baseu-2.8.so.0(WXU_2.8) is needed by esl-erlang-17.0-1.i686 libwx_baseu_xml-2.8.so.0 is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_adv-2.8.so.0 is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_adv-2.8.so.0(WXU_2.8) is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_aui-2.8.so.0 is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_aui-2.8.so.0(WXU_2.8) is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_aui-2.8.so.0(WXU_2.8.5) is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_core-2.8.so.0 is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_core-2.8.so.0(WXU_2.8) is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_gl-2.8.so.0 is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_gl-2.8.so.0(WXU_2.8) is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_html-2.8.so.0 is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_html-2.8.so.0(WXU_2.8) is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_stc-2.8.so.0 is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_stc-2.8.so.0(WXU_2.8) is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_xrc-2.8.so.0 is needed by esl-erlang-17.0-1.i686 libwx_gtk2u_xrc-2.8.so.0(WXU_2.8) is needed by esl-erlang-17.0-1.i686
原因是不能安装相应的依赖,我也不知道原因。手动安装相应的依赖
yum install unixODBC unixODBC-devel wxBase wxGTK SDL wxGTK-gl yum install epel-release
再次安装

>rpm -i esl-erlang_19.1.5-centos-7_amd64 (1).rpm yum install erlang
安装成功
warning: esl-erlang_19.1.5-centos-7_amd64 (1).rpm: Header V4 RSA/SHA1 Signature, key ID a14f4fca: NOKEY Preparing... ################################# [100%] Updating / installing... 1:esl-erlang-19.1.5-1 ################################# [100%] Erlang OTP 19.1.5 installed

安装rabbitmq

yum install rabbitmq-server

你可能感兴趣的:(分布式可视化爬虫之-rabbitmq安装)