Ignoring the --cache-
file
argument since it can cause the system to be erroneously configured
Disabling caching
checking build system
type
... x86_64-unknown-linux-gnu
checking host system
type
... x86_64-unknown-linux-gnu
checking
for
gcc... no
checking
for
cc... no
checking
for
cc... no
checking
for
cl... no
configure: error: no acceptable C compiler found
in
$PATH
See `config.log'
for
more
details.
|
yum
install
-y gcc-c++
|
checking
for
tgetent
in
-ltinfo... no
checking
for
tgetent
in
-lncurses... no
checking
for
tgetent
in
-lcurses... no
checking
for
tgetent
in
-ltermcap... no
checking
for
tgetent
in
-ltermlib... no
configure: error: No curses library functions found
configure: error:
/bin/sh
'/software/otp_src_18.2.1/erts/configure'
failed
for
erts
|
yum -y
install
ncurses-devel
|
crypto : No usable OpenSSL found
jinterface : Java compiler disabled by user
odbc : ODBC library - link check failed
ssh
: No usable OpenSSL found
ssl : No usable OpenSSL found
|
yum
install
openssl-devel
|
jinterface : Java compiler disabled by user
odbc : ODBC library - link check failed
|
yum
install
unixODBC-devel
|
export
PATH=$PATH:
/usr/local/bin/erlang/bin
:
/usr/local/bin/rabbitmq_server-3
.6.1
/sbin
|
rabbitmq配置
一般情况下,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 //插件的路径
rabbitmq.config
这是一个标准的erlang配置文件。它必须符合erlang配置文件的标准。
它既有默认的目录,也可以在rabbitmq-env.conf文件中配置。
文件的内容详见:http://www.rabbitmq.com/configure.html#config-items
rabbitmq-plugins
enable
rabbitmq_management
|
$ cd /usr/lib/rabbitmq/bin/ #用户名与密码 $ sudo rabbitmqctl add_user webadmin 123456 #用户设置为administrator才能远程访问 $ sudo rabbitmqctl set_user_tags webadmin administrator $ sudo rabbitmqctl set_permissions -p / webadmin ".*" ".*" ".*"