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 ".*" ".*" ".*"