标签:bubuko org unix 虚拟 username miss tst use 上传
上传到服务器tmp目录下,进入到tmp目录进行安装。
# cd /tmp
# mkdir -p /usr/local/erlang
# tar -xzvf otp_src_20.1.tar.gz
# cd otp_src_20.1
# ./configure --prefix=/usr/local/erlang --with-ssl --enable-threads --enable-smp-support --enable-kernel-poll --enable-hipe --without-javac
# make -j8
# make install
# vim /etc/profile
在末尾加入以下内容:
#set erlang environment
export PAHT=$PATH:/usr/local/erlang/bin
# source /etc/profile
# erl
展示以下内容说明生效
下载rabbitmq-server安装包
http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.15/rabbitmq-server-generic-unix-3.6.15.tar.xz
# tar xvf rabbitmq-server-generic-unix-3.6.15.tar.xz
# mv rabbitmq_server-3.6.15 /usr/local/RabbitMQ
# vim /etc/profile
在末尾加入以下内容:
#set RabbitMQ environment
export PAHT=$PATH:/usr/local/RabbitMQ/sbin
# source /etc/profile
# cd /usr/local/RabbitMQ/sbin
查看插件列表
# ./rabbitmq-plugins list
# ./rabbitmq-plugins enable rabbitmq_management
# ./rabbitmq-server -detached
1 我们再来查看看一下rabbitmq的默认监听端口5672 2 #netstat -tnlp|grep 5672 3 最好我们就可以在浏览器上输入http://ip:15672/登录管理界面了 4 使用登录的用户名和密码默认都是guest
添加用户: # ./rabbitmqctl add_user username password
如:./rabbitmqctl add_user admin 123456
授权用户管理员: # ./rabbitmqctl set_user_tags user administrator
如:./rabbitmqctl set_user_tags admin administrator
添加虚拟机: # ./rabbitmqctl add_vhost vhostname
如:./rabbitmqctl add_vhost admin_vhost
授权用户到虚拟机: # ./rabbitmqctl set_permissions -p vhostname username ".*" ".*" ".*"
如:./rabbitmqctl set_permissions -p admin_vhost admin ".*" ".*" ".*"
标签:bubuko org unix 虚拟 username miss tst use 上传
原文地址:https://www.cnblogs.com/dreasky/p/9146494.html