RabbitMQ(3)Install on CentOS
1. 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
The same error message with redhat.
Loading mirror speeds from cached hostfile
http://repos.fedorapeople.org/repos/peter/erlang/epel-6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Setting up Install Process
No package erlang available.
After my testing, actually, the version of yum 3.2.19 is ok. But my yum version on centos is 3.2.29.
2. Follow redhat readme
http://sillycat.iteye.com/blog/1565771
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=/opt/tool/erlang
error message:
configure: error: no acceptable C compiler found in $PATH
solution:
>sudo yum install gcc
>gcc --version
gcc (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3)
Copyright (C) 2010 Free Software Foundation, Inc.
go on with the install command
>make
>sudo make install
>cd /opt/tool/erlang/bin
>./erl
And I will link the erl file to /usr/bin
>sudo ln -s /opt/tool/erlang/bin/erl /usr/bin/erl
4. Install rabbitmq
>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/tool/rabbitmq_server2.8.2
start the server
>cd /opt/tools/rabbitmq_server2.8.2
>sudo sbin/rabbitmq-server
error message:
********************************************************************************
*WARNING* Undefined function crypto:des3_cbc_decrypt/5
*WARNING* Undefined function crypto:start/0
*WARNING* Undefined function ssl:close/1
*WARNING* Undefined function ssl:connection_info/1
*WARNING* Undefined function ssl:controlling_process/2
*WARNING* Undefined function ssl:getopts/2
*WARNING* Undefined function ssl:peercert/1
*WARNING* Undefined function ssl:peername/1
*WARNING* Undefined function ssl:recv/3
*WARNING* Undefined function ssl:send/2
*WARNING* Undefined function ssl:setopts/2
*WARNING* Undefined function ssl:sockname/1
*WARNING* Undefined function ssl:ssl_accept/3
********************************************************************************
0 plugins activated:
ERROR: epmd error for host "vip11009-403": address (unable to establish tcp connection)
solution:
Install ssl with erlang to remove the warning.
>sudo vi /etc/hosts
127.0.0.1 hostsname
check the status and stop the server
>sudo sbin/rabbitmqctl status
>sudo sbin/rabbitmqctl stop
references:
http://www.rabbitmq.com/install-rpm.html
http://sillycat.iteye.com/blog/1565771
http://codingiscoding.wordpress.com/2011/04/17/rabbitmq-on-os-x/
分享到:
相关推荐
chkconfig rabbitmq-server on ``` #### 五、管理操作 ##### 查看插件 进入 `/usr/sbin` 目录下,执行以下命令查看已安装的插件: ```bash ./rabbitmq-plugins list ``` ##### 查看状态 同样地,使用 `...
chkconfig rabbitmq-server on 接着,复制配置文件: cp /usr/share/doc/rabbitmq-server-3.6.5/rabbitmq.config.example /etc/rabbitmq/ mv rabbitmq.config.example rabbitmq.config 然后,开启用户远程访问和 ...
sudo chkconfig rabbitmq-server on ``` 现在,RabbitMQ应该可以在系统启动时自动运行了。如果需要配置管理界面,还需安装RabbitMQ的Web管理插件: 1. 启用管理插件: ``` sudo rabbitmq-plugins enable rabbitmq_...
3. 安装RabbitMQ: 切换到RabbitMQ安装包所在的目录,执行以下命令: ``` [root@localhost fable]# rpm -ivh rabbitmq-server-3.8.4-1.el7.noarch.rpm ``` 4. 设置RabbitMQ开机自启动: ``` [root@localhost ...
sudo chkconfig rabbitmq-server on ``` ### 四、设置管理界面 1. 配置RabbitMQ允许远程访问,默认只允许本地访问。编辑配置文件: ```bash sudo vi /etc/rabbitmq/rabbitmq-env.conf ``` 添加一行: ```bash ...
sudo chkconfig rabbitmq-server on ``` ### 六、配置与安全 默认情况下,RabbitMQ使用guest用户,只允许本地连接。为了远程访问,你需要创建新用户并赋予相应的权限。打开RabbitMQ控制台: ```bash sudo ...
chkconfig --level 345 rabbitmq-server on service rabbitmq-server status ``` ### 4. 配置管理 - 启用RabbitMQ的Web管理界面: ``` sudo -u root rabbitmq-plugins enable rabbitmq_management ``` - ...
离线安装RabbitMQ 3.8.1在CentOS 7.2.1511上的步骤是一项技术性较强的任务,尤其对于那些没有网络连接或者网络环境受限的服务器而言。RabbitMQ是一款广泛使用的开源消息代理软件,它基于Erlang编程语言构建,用于在...
sudo apt-get install rabbitmq-server # CentOS/RHEL sudo yum install epel-release sudo yum install rabbitmq-server ``` 对于Redis,通常需要从官方仓库安装最新稳定版本,因为默认的包管理器可能提供...
sudo yum install -y git libffi-devel libxml2-devel libxslt-devel python-devel python-pip rabbitmq-server docker ``` 四、配置网络 OpenStack需要一个桥接网络,用于虚拟机的通信。创建一个名为br-ex的外部...
#### 3. 配置NTP时间同步 时间同步对于集群环境至关重要。通过安装NTP服务,并进行适当的配置,确保所有节点的时间保持一致: ```bash yum install ntp ntpdate 10.104.12.234 ``` 在`/etc/ntp.conf`中添加服务器...
1. 下载并安装 OpenStack 源(Queens 版本):使用 `yum install centos-release-openstack-queens` 命令下载并安装 OpenStack 源。 2. 更新 yum repository:使用 `yum upgrade` 命令更新 yum repository。 3. 安装...
首先,安装 chrony 软件包,然后编辑配置文件,删除四行 server 0.centos.pool.ntp.org iburst server 1.centos.pool.ntp.org iburst server 2.centos.pool.ntp.org iburst server 3.centos.pool.ntp.org iburst,...
yum install centos-release-openstack-stein yum upgrade -y && reboot yum install python-openstackclient # 安装 OpenStack 客户端软件包 yum install openstack-selinux # 自动管理 OpenStack 服务的安全策略...
CREATE UNIQUE INDEX `IDX_PUSH_MQTT_USERS_UN` ON `PUSH_MQTT_USERS` (`USERNAME`); CREATE TABLE `PUSH_MQTT_ACLS` ( `ID` CHAR(36) NOT NULL COMMENT 'MQTT权限ID', `USERNAME` VARCHAR(25) NOT NULL ...
##### 3. 安装 OpenStack 相关组件 使用 yum 安装 OpenStack 的核心组件和其他可选依赖。 ```bash sudo yum --enablerepo=epel-testing install \ openstack-nova openstack-glance openstack-keystone openstack-...