centos6.5 rabbitmqのインストール
インストールerlang
1、公式サイトにアクセスして住所をダウンロードする
https://www.erlang-solutions.com/resources/download.html
最新のインストールパッケージをダウンロード
1、公式サイトにアクセスして住所をダウンロードする
https://www.erlang-solutions.com/resources/download.html
最新のインストールパッケージをダウンロード
wget https://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_19.1.5~centos~6_amd64.rpm
rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
warning: esl-erlang_19.1.5~centos~6_amd64.rpm: Header V4 RSA/SHA1 Signature, key ID a14f4
error: Failed dependencies:
libGL.so.1()(64bit) is needed by esl-erlang-19.1.5-1.x86_64
libGLU.so.1()(64bit) is needed by esl-erlang-19.1.5-1.x86_64
libodbc.so.2()(64bit) is needed by esl-erlang-19.1.5-1.x86_64
libsctp.so.1()(64bit) is needed by esl-erlang-19.1.5-1.x86_64
- ......
, , , :
rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
vi /etc/yum.repos.d/xxx
[erlang-solutions]
name=Centos $releasever - $basearch - Erlang Solutions
baseurl=https://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch
gpgcheck=1
gpgkey=https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
enabled=1
yum makecache
yum makecache
erlang
yum -y install erlang
[root@study2 soft]# erl
Erlang/OTP 19 [erts-8.1] [source-77fb4f8] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V8.1 (abort with ^G)
1>
rabbitmq
https://www.rabbitmq.com/install-rpm.html
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el6.noarch.rpm
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
-
yum -y install rabbitmq-server-3.6.6-1.el6.noarch.rpm
:
,RabbitMQ 。 , :
rabbitmq-env.conf ;
rabbitmq.config;
, , 。
rabbitmq-env.conf
, :/etc/rabbitmq ( )。
RabbitMQ , :
#RABBITMQ_NODE_PORT= //
#HOSTNAME=
RABBITMQ_NODENAME=mq
RABBITMQ_CONFIG_FILE= //
RABBITMQ_MNESIA_BASE=/rabbitmq/data // MNESIA
RABBITMQ_LOG_BASE=/rabbitmq/log //log
RABBITMQ_PLUGINS_DIR=/rabbitmq/plugins //
http://www.rabbitmq.com/configure.html#define-environment-variables
rabbitmq.config
erlang 。 erlang 。
, rabbitmq-env.conf 。
rpm
/usr/share/doc/rabbitmq-server/ or /usr/share/doc/rabbitmq-server-3.x.x/
:
[root@study2 rabbitmq-server-3.2.3]# cp rabbitmq.config.example /etc/rabbitmq/rabbitmq.config
-
- :http://www.rabbitmq.com/configure.html#config-item