标签:app make password erlang configure serve dev load rmi
1、概述
erlang编译安装: $ mkdir /usr/local/erlang $ cd opt $ tar -zxvf otp_src_19.3.tar.gz -C /usr/local/erlang # 安装依赖包 $ yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel $ cd /usr/local/erlang/otp_src_19.3 $ ./configure --prefix=/usr/local/erlang --with-ssl -enable-threads -enable-smmp-support -enable-kernel-poll --enable-hipe --without-javac $ make $ make install
3、rabbitMQ安装
(1) RabbitMQ下载安装
下载地址:https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_9/rabbitmq-server-generic-unix-3.6.9.tar.xz
解压编译 $ cd /opt/ $ xz -d rabbitmq-server-generic-unix-3.6.9.tar.xz(会卡住,需要安装xz支持,先执行步骤(2)的内容) $ mkdir /usr/local/rabbitmq $ tar -xvf rabbitmq-server-generic-unix-3.6.9.tar -C /usr/local/rabbitmq (2) 安装xz: $ mkdir /usr/local/xz $ cd opt $ tar -jxvf xz-5.2.3.tar.bz2 -C /usr/local/xz $ cd /usr/local/xz/xz-5.2.3 $ ./configure --prefix=/usr/local/xz $ make $ make all
(3) 安装完成后,配置环境变量
(4) 启动与关闭: $ rabbitmq-server -detached # 如果想以后台进程方式运行 $ rabbitmqctl stop # 不仅关闭Rabbit应用程序,同时也关闭Erlang节点 $ rabbitmqctl stop_app # 只关闭运行着的Rabbit程序 $ rabbitmqctl start_app # 对应启动方式
(5)用户权限添加
# 添加用户
$ rabbitmqctl add_user admin admin123
# 修改密码
$ rabbitmqctl change_password admin admin123
# 赋予权限
$ rabbitmqctl set_user_tags admin administrator
$ rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"
(6)开启界面管理
# 开启命令
$ rabbitmq-plugins enable rabbitmq_management
访问地址:http://127.0.0.1:15672
# 关闭命令
$ rabbitmq-plugins disable rabbitmq_management
标签:app make password erlang configure serve dev load rmi
原文地址:https://www.cnblogs.com/ice-line/p/9590385.html