`
sillycat
  • 浏览: 2542940 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

RabbitMQ(1)Install on Redhat

 
阅读更多
RabbitMQ(1)Install on Redhat

First of all, I tried to install this software on redhat. I choose the general unix way to do that.

1. Check my yum
>yum --version
2.0.7
>python -V
2.3.4

update my yum repository
>sudo vi /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1

[base]
#name=CentOS-$releasever – Base
name=Red Hat Linux $releasever - $basearch - Base
#baseurl=http://mirror.centos.org/centos/4/os/i386/
baseurl=http://vault.centos.org/4.9/os/i386/
gpgcheck=1

[updates]
#name=Red Hat Linux $releasever – Updates
name=Red Hat Linux $releasever - Updates
#baseurl=http://mirror.centos.org/centos/4/updates/i386/
baseurl=http://vault.centos.org/4.9/updates/i386/
gpgcheck=1

And change the /etc/yum.repos.d/CentOS-Base.repo content to
http://vault.centos.org/4.9 as well.

>sudo yum update

2. Install erlang
>sudo wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo
>sudo yum update
>sudo yum install erlang

error message:
Finding updated packages
Downloading needed headers
Cannot find a package matching erlang
No actions to take

solution:
maybe, because my yum version is very old, the erlang repo is not working.
I copy the content to /etc/yum.conf
...snip..
[epel-erlang]
name=Erlang/OTP R14B
baseurl=http://repos.fedorapeople.org/repos/peter/erlang/epel-$releasever/$basearch/
enabled=1
skip_if_unavailable=1
gpgcheck=0

[epel-erlang-source]
name=Erlang/OTP R14B - Source
baseurl=http://repos.fedorapeople.org/repos/peter/erlang/epel-$releasever/SRPMS
enabled=0
skip_if_unavailable=1
gpgcheck=0

But still, there is error message, maybe, the yum is too old. I will try to update that.
retrygrab() failed for:
  http://repos.fedorapeople.org/repos/peter/erlang/epel-4/i386/headers/header.info
  Executing failover method
failover: out of servers to try
Error getting file http://repos.fedorapeople.org/repos/peter/erlang/epel-4/i386/headers/header.info
[Errno 4] IOError: HTTP Error 404: Not Found

solution:
update my yum to 3.4.3, python to 2.6.1.
>which yum
>sudo vi /usr/bin/yum

>yum --version
Traceback (most recent call last):
  File "/usr/bin/yum", line 28, in ?
    import yummain
  File "/usr/share/yum-cli/yummain.py", line 30, in ?
    from yum import logginglevels
ImportError: cannot import name logginglevels

solution:
I will try the version yum 3.2.19  Python 2.4.3
>wget http://www.python.org/ftp/python/2.4.3/Python-2.4.3.tar.bz2
>tar -jxvf Python-2.4.3.tar.bz2
>cd Python-2.4.3
>./configure --prefix=/usr/python2.4.3
>sudo mkdir /usr/python2.4.3
>make
>sudo make install
>sudo mv /usr/bin/python /usr/bin/python2.6.1
>sudo ln -s /usr/python2.4.3/bin/python /usr/bin/python
>python -V
Python 2.4.3

>wget http://yum.baseurl.org/download/3.2/yum-3.2.19.tar.gz
>sudo rm /usr/bin/yum
>sudo rm /usr/bin/yum-arch
>tar zxvf yum-3.2.19.tar.gz
>cd yum-3.2.19
>sudo make
>sudo make install

>yum --version
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named yum

Solution:
>whereis python
python: /usr/bin/python /usr/bin/python2.3 /usr/lib/python2.3 /usr/include/python2.3 /usr/share/man/man1/python.1.gz

I am really unhappy about the yum version and the python version. Maybe, I will make it better next time. I will try other way to install erlang on my redhat.

3. Install erlang from source
>wget http://www.erlang.org/download/otp_src_R15B01.tar.gz
>tar zxvf otp_src_R15B01.tar.gz
>cd otp_src_R15B01
>export LANG=C
>./configure  --prefix=/usr/erlang
>make
>sudo make install
>cd /usr/erlang/bin
>erl

And I will link the erl file to /usr/bin
>sudo ln -s /usr/erlang/bin/erl /usr/bin/erl

4. I will install rabbitMQ
I will try to install rabbitmq with http://www.rabbitmq.com/releases/rabbitmq-server/v2.8.2/rabbitmq-server-2.8.2-1.noarch.rpm.
>sudo rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
>sudo yum install rabbitmq-server-2.8.2-1.noarch.rpm
This is not working because my yum version is low maybe.

I will try to install rabbitmq in general way.
>wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.8.2/rabbitmq-server-generic-unix-2.8.2.tar.gz
>tar zxvf rabbitmq-server-generic-unix-2.8.2.tar.gz
>sudo mv rabbitmq_server-2.8.2 /opt/tools/rabbitmq_server-2.8.2

Start the server
>cd /opt/tools/rabbitmq_server-2.8.2
>sudo sbin/rabbitmq-server

Check the status and stop the server
>sudo sbin/rabbitmqctl status
>sudo sbin/rabbitmqctl stop

references:
http://www.rabbitmq.com/install-windows.html
http://www.rabbitmq.com/install-generic-unix.html
http://mirrors.163.com/.help/centos.html?1304848825
http://sillycat.iteye.com/blog/1156180
http://nigelzeng.iteye.com/blog/1522554
http://zhb1208.iteye.com/blog/1330658

http://sillycat.iteye.com/blog/1155915
http://www.cxybase.com/201011/yum-python-error/
http://www.question-defense.com/2009/12/25/how-to-install-python-2-6-on-centos-5-without-breaking-yum
http://www.red-dove.com/python_logging.html#download
http://sillycat.iteye.com/blog/1154047

http://dennis-zane.iteye.com/blog/95572

分享到:
评论

相关推荐

    rabbitmq-install.zip

    在CentOS-7-1908系统中,离线安装RabbitMQ RabbitMQ-3.3.5-34 离线安装包 RabbitMQ依赖于 Erlang 语言库,必须先安装Erlang语言包 Erlang-R16B-03.18 安装只需要执行: rpm -ivh *.rpm

    RabbitMQ安装包(Linux)RabbitMQ_INSTALL_2020-01-20_14-17-51.bin

    RabbitMQ安装包(Linux)RabbitMQ_INSTALL_2020-01-20_14-17-51.bin

    rabbitmq-install-3.8.3-centos7-1908.zip

    在这个案例中,文件名分别为 "rabbitmq-server-3.8.3-1.el7.noarch.rpm" 和 "erlang-22.3.2-1.el7.x86_64.rpm"。 安装步骤如下: 1. **安装 Erlang**:Erlang 是 RabbitMQ 的运行时环境,首先需要安装。在命令行中...

    RabbitMQ-c源码

    在Redhat Linux上编译RabbitMQ-c,首先需要确保系统已经安装了必要的依赖项,如GCC编译器、OpenSSL库和libcurl等。 1. **安装依赖** 在开始编译RabbitMQ-c之前,需要确保系统中已经安装了以下依赖: - **GCC**: ...

    linux中rabbitmq安装包

    sudo yum install -y rabbitmq-server-3.11.1-1.el8.noarch.rpm ``` 安装完成后,RabbitMQ服务通常会自动启动。你可以通过以下命令检查其状态: ```bash sudo systemctl status rabbitmq-server ``` 如果RabbitMQ...

    rabbitmq-server-3.6.5-1.noarch.rar

    标题中的“rabbitmq-server-3.6.5-1.noarch.rar”指的是RabbitMQ服务器的一个特定版本,即3.6.5版本。RabbitMQ是一个开源的消息队列系统,基于AMQP(Advanced Message Queuing Protocol)协议,用于在分布式系统中...

    rabbitmq 3.6.5-1离线安装

    rpm -ivh rabbitmq-server-3.6.5-1.noarch.rpm systemctl status rabbitmq-server systemctl start rabbitmq-server systemctl stop rabbitmq-server systemctl restart rabbitmq-server systemctl enable ...

    RabbitMQ安装配置1

    1. **Erlang 安装**: - 下载地址:http://www.erlang.org/downloads - 使用 `yum install ncurses-dev` 安装必要的依赖。 - 解压下载的 Erlang 源码包,例如 otp_src_20.1。 - 执行 `./configure`,指定安装...

    rabbitmq-server-windows-3.6.12.zip

    To upgrade a non-clustered RabbitMQ simply install the new version. All configuration and persistent message data are retained. When upgrading using definitions export/import from versions earlier ...

    安装rabbitmq3.6.15.zip

    sudo chkconfig rabbitmq-server on ``` 在RabbitMQ的默认配置中,它是以非托管模式运行的,这意味着你需要手动创建一个用户并赋予管理权限。这可以通过RabbitMQ的Web管理界面或命令行工具`rabbitmqctl`完成。参考`...

    rabbitmq-server-3.6.5-1.noarch.zip

    sudo yum install rabbitmq-server-3.6.5-1.noarch.rpm ``` 安装完成后,需要启动RabbitMQ服务并设置其开机启动: ```bash sudo systemctl start rabbitmq-server sudo systemctl enable rabbitmq-server ``` 在...

    rabbitmq-c-master.rar_RabbitMQ c lib_cmake编译_rabbitmq_rabbitmq-c

    1. **获取源码**:首先,从官方仓库或者提供的压缩包中下载`rabbitmq-c-master`源代码。 2. **创建构建目录**:为了保持源代码的整洁,我们通常在源代码目录外创建一个新目录,例如`build`,用于放置编译生成的文件...

    RabbitMQ3.9.15安装包及安装文档

    1. **RabbitMQ概述**:RabbitMQ是一个用Erlang编程语言开发的消息中间件,它的核心功能是作为消息代理,接收并转发应用程序之间的消息。它支持多种消息协议,但最常用的是AMQP,该协议定义了消息的格式和交换方式。 ...

    RabbitMQ系列教程1

    【RabbitMQ系列教程1】 RabbitMQ是一个广泛使用的开源消息代理和队列服务器,它实现了高级消息队列协议(AMQP)。这个教程将引导我们深入理解RabbitMQ的核心概念和工作原理,以及如何与其他消息中间件进行比较。 1...

    麒麟v10系统Rabbitmq3.6.10安装包

    sudo rpm -ivh rabbitmq-server-3.6.10-1.noarch.rpm ``` 安装完成后,启动RabbitMQ服务: ```bash sudo systemctl start rabbitmq-server ``` 为了确保RabbitMQ服务在每次系统启动时自动运行,可以设置开机启动...

    rabbitMQ3.7.8windows安装软件包

    RabbitMQ是一款开源的...总结,安装RabbitMQ 3.7.8 on Windows涉及Erlang环境的准备、RabbitMQ服务的安装与配置,以及基本的管理和使用知识。正确配置和使用RabbitMQ,能有效提升分布式系统中的消息通信效率和可靠性。

    rabbitmq配置文件 rabbitmq.config

    rabbitmq配置文件,用于rabbitmq管理

    CentOS 7 下安装RabbitMQ教程配套的离线文件

    2. **RabbitMQ Server RPM 包** (`rabbitmq-server-3.8.5-1.el7.noarch.rpm`): 这个文件是 RabbitMQ 服务器的 RPM 包,版本为 3.8.5。RabbitMQ 服务器负责接收、存储和分发消息。通过安装这个包,你可以启动和管理 ...

    离线安装rabbitmq全过程,包含python环境和er环境以及安装包的安装过程

    1. 创建软链接:`sudo ln -s /opt/rabbitmq/sbin/rabbitmq-server /usr/local/bin/` 2. 创建软链接:`sudo ln -s /opt/rabbitmq/bin/rabbitmq-plugins /usr/local/bin/` 3. 创建软链接:`sudo ln -s /opt/rabbitmq/...

    Centos7.5 RabbitMQ及依赖离线RPM包

    1. 将`Centos7.5_RabbitMQ及依赖离线RPM安装包`解压到本地目录。 2. 使用`rpm`命令逐个安装Erlang的RPM包,例如:`sudo rpm -ivh erlang-19.3.6.rpm`。 3. 安装socat的RPM包,命令类似:`sudo rpm -ivh socat-1.7....

Global site tag (gtag.js) - Google Analytics