- 浏览: 2551712 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
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
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
发表评论
-
Update Site will come soon
2021-06-02 04:10 1677I am still keep notes my tech n ... -
Hadoop Docker 2019 Version 3.2.1
2019-12-10 07:39 294Hadoop Docker 2019 Version 3.2. ... -
Nginx and Proxy 2019(1)Nginx Enable Lua and Parse JSON
2019-12-03 04:17 448Nginx and Proxy 2019(1)Nginx En ... -
Data Solution 2019(13)Docker Zeppelin Notebook and Memory Configuration
2019-11-09 07:15 294Data Solution 2019(13)Docker Ze ... -
Data Solution 2019(10)Spark Cluster Solution with Zeppelin
2019-10-29 08:37 248Data Solution 2019(10)Spark Clu ... -
AMAZON Kinesis Firehose 2019(1)Firehose Buffer to S3
2019-10-01 10:15 322AMAZON Kinesis Firehose 2019(1) ... -
Rancher and k8s 2019(3)Clean Installation on CentOS7
2019-09-19 23:25 313Rancher and k8s 2019(3)Clean In ... -
Pacemaker 2019(1)Introduction and Installation on CentOS7
2019-09-11 05:48 343Pacemaker 2019(1)Introduction a ... -
Crontab-UI installation and Introduction
2019-08-30 05:54 455Crontab-UI installation and Int ... -
Spiderkeeper 2019(1)Installation and Introduction
2019-08-29 06:49 509Spiderkeeper 2019(1)Installatio ... -
Supervisor 2019(2)Ubuntu and Multiple Services
2019-08-19 10:53 370Supervisor 2019(2)Ubuntu and Mu ... -
Supervisor 2019(1)CentOS 7
2019-08-19 09:33 331Supervisor 2019(1)CentOS 7 Ins ... -
Redis Cluster 2019(3)Redis Cluster on CentOS
2019-08-17 04:07 373Redis Cluster 2019(3)Redis Clus ... -
Amazon Lambda and Version Limit
2019-08-02 01:42 438Amazon Lambda and Version Limit ... -
MySQL HA Solution 2019(1)Master Slave on MySQL 5.7
2019-07-27 22:26 529MySQL HA Solution 2019(1)Master ... -
RabbitMQ Cluster 2019(2)Cluster HA and Proxy
2019-07-11 12:41 463RabbitMQ Cluster 2019(2)Cluster ... -
Running Zeppelin with Nginx Authentication
2019-05-25 21:35 323Running Zeppelin with Nginx Aut ... -
Running Zeppelin with Nginx Authentication
2019-05-25 21:34 323Running Zeppelin with Nginx Aut ... -
ElasticSearch(3)Version Upgrade and Cluster
2019-05-20 05:00 329ElasticSearch(3)Version Upgrade ... -
Jetty Server and Cookie Domain Name
2019-04-28 23:59 404Jetty Server and Cookie Domain ...
相关推荐
在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-server-3.8.3-1.el7.noarch.rpm" 和 "erlang-22.3.2-1.el7.x86_64.rpm"。 安装步骤如下: 1. **安装 Erlang**:Erlang 是 RabbitMQ 的运行时环境,首先需要安装。在命令行中...
在Redhat Linux上编译RabbitMQ-c,首先需要确保系统已经安装了必要的依赖项,如GCC编译器、OpenSSL库和libcurl等。 1. **安装依赖** 在开始编译RabbitMQ-c之前,需要确保系统中已经安装了以下依赖: - **GCC**: ...
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 ...
1. **获取源码**:首先,从官方仓库或者提供的压缩包中下载`rabbitmq-c-master`源代码。 2. **创建构建目录**:为了保持源代码的整洁,我们通常在源代码目录外创建一个新目录,例如`build`,用于放置编译生成的文件...
标题中的“rabbitmq-server-3.6.5-1.noarch.rar”指的是RabbitMQ服务器的一个特定版本,即3.6.5版本。RabbitMQ是一个开源的消息队列系统,基于AMQP(Advanced Message Queuing Protocol)协议,用于在分布式系统中...
sudo yum install -y rabbitmq-server-3.11.1-1.el8.noarch.rpm ``` 安装完成后,RabbitMQ服务通常会自动启动。你可以通过以下命令检查其状态: ```bash sudo systemctl status rabbitmq-server ``` 如果RabbitMQ...
1. **Erlang 安装**: - 下载地址:http://www.erlang.org/downloads - 使用 `yum install ncurses-dev` 安装必要的依赖。 - 解压下载的 Erlang 源码包,例如 otp_src_20.1。 - 执行 `./configure`,指定安装...
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 ...
sudo chkconfig rabbitmq-server on ``` 在RabbitMQ的默认配置中,它是以非托管模式运行的,这意味着你需要手动创建一个用户并赋予管理权限。这可以通过RabbitMQ的Web管理界面或命令行工具`rabbitmqctl`完成。参考`...
sudo yum install rabbitmq-server-3.6.5-1.noarch.rpm ``` 安装完成后,需要启动RabbitMQ服务并设置其开机启动: ```bash sudo systemctl start rabbitmq-server sudo systemctl enable rabbitmq-server ``` 在...
1. **RabbitMQ概述**:RabbitMQ是一个用Erlang编程语言开发的消息中间件,它的核心功能是作为消息代理,接收并转发应用程序之间的消息。它支持多种消息协议,但最常用的是AMQP,该协议定义了消息的格式和交换方式。 ...
【RabbitMQ系列教程1】 RabbitMQ是一个广泛使用的开源消息代理和队列服务器,它实现了高级消息队列协议(AMQP)。这个教程将引导我们深入理解RabbitMQ的核心概念和工作原理,以及如何与其他消息中间件进行比较。 1...
RabbitMQ是一款开源的...总结,安装RabbitMQ 3.7.8 on Windows涉及Erlang环境的准备、RabbitMQ服务的安装与配置,以及基本的管理和使用知识。正确配置和使用RabbitMQ,能有效提升分布式系统中的消息通信效率和可靠性。
sudo rpm -ivh rabbitmq-server-3.6.10-1.noarch.rpm ``` 安装完成后,启动RabbitMQ服务: ```bash sudo systemctl start rabbitmq-server ``` 为了确保RabbitMQ服务在每次系统启动时自动运行,可以设置开机启动...
rabbitmq配置文件,用于rabbitmq管理
2. **RabbitMQ Server RPM 包** (`rabbitmq-server-3.8.5-1.el7.noarch.rpm`): 这个文件是 RabbitMQ 服务器的 RPM 包,版本为 3.8.5。RabbitMQ 服务器负责接收、存储和分发消息。通过安装这个包,你可以启动和管理 ...
1. **RabbitMQ基本概念** - **Broker**: RabbitMQ就是消息队列的broker,负责接收、存储和转发消息。 - **Exchange**: 交换器是RabbitMQ的核心组件,它根据预定义的路由规则将消息分发到不同的队列。 - **Queue**...
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/...