Quick to install and use rabbitMq second portion, the first portion will see a bustling, the second portion can be done directly build environment
first part
http://www.cnerlang.com/resource/182.html Download erlang
Install erlang
在解压erlang的时候出现问题的时候
#tar -vxf memcached-1.4.34.tar.gz
tar包压缩的时候用cvf参数,解压的时候用xvf参数
或压缩的时候用czvf参数,解压的时候用xzvf参数
Disc otp_src_21.0
./configure
安装erlang的时候,使用make命令一直报这个错
Makefile:248: /usr/local/otp_src_18.1/make/x86_64-unknown-linux-gnu/otp_ded.mk: No such file or directory error: No curses library functions found
解决:
# yum install gcc-c++
# ./configure --prefix=/home/erlang --without-javac
# make
# make install
/ Home / erlang / bin / erl
In the path of bin configuration erl
May be added in / etc / profile which
PATH = $ PATH: / home / erlang / bin
export $PATH
Save and exit, and then command source / etc / profile to take effect
the second part
rabbitmq:
Install erlang https://github.com/rabbitmq/erlang-rpm/releases
After the system according to their needs and the downloaded version, use the rpm -ivh
quick installation
The shell run the following statement after the installation of erlang, install erlang and the rabbitmq中间人
yum install -y socat
Download rabbitmq
Depending on the version you need to download their required
Then run the following command to install client
[root@localhost soft]# rabbitmq-plugins enable rabbitmq_management
The following plugins have been configured:
rabbitmq_management
rabbitmq_management_agent
rabbitmq_web_dispatch
Applying plugin configuration to rabbit@localhost...
The following plugins have been enabled:
rabbitmq_management
rabbitmq_management_agent
rabbitmq_web_dispatch
started 3 plugins.
[root@localhost soft]# systemctl start rabbitmq-server
Can not access another host its guest user, run the following command in a terminal, create an admin user, and then log in again after you can
#添加用户
#./rabbitmqctl add_user 账号 密码
./rabbitmqctl add_user admin admin
#分配用户标签(admin为要赋予administrator权限的刚创建的那个账号的名字)
./rabbitmqctl set_user_tags admin administrator
#设置权限<即开启远程访问>(如果需要远程连接,例如java项目中需要调用mq,则一定要配置,否则无法连接到mq,admin为要赋予远程访问权限的刚创建的那个账号的名字,必须运行着rabbitmq此命令才能执行)
./rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"
https://www.cnblogs.com/LUA123/p/8469574.html
Thank the blogger, let me out of the configuration of Oliver