发布时间:2024-01-10 08:00
下载otp_src_21.3.8.21.tar.gz安装包,并上传至服务器
[root@localhost ~]# tar -zxvf otp_src_21.3.8.21.tar.gz
[root@localhost ~]# cdotp_src_21.3.8.21
./configure --prefix=/usr/local/erlang --with-ssl -enable-threads -enable-smmp-support -enable-kernel-poll --enable-hipe --without-javac
[root@localhost otp_src_21.3.8.21]# make
[root@localhost otp_src_21.3.8.21]# make install
在/etc/profile配置文件尾部添加/usr/local/erlang/bin
1.[root@localhost otp_src_21.3.8.21]# vim /etc/profile
2.root@localhost otp_src_21.3.8.21]# exportPATH=$PATH:/usr/local/erlang/bin
3.[root@localhost otp_src_21.3.8.21]# source /etc/profile #使其生效
4.[root@localhost otp_src_21.3.8.21]# echo $PATH
[root@localhost ~]# erl -version
Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 5.10.4
下载rabbitmq安装包,并上传至服务器
下载地址
2.安装
[root@localhost rabbitmq]# rpm -ivh rabbitmq-server-3.6.16-1.el7.noarch.rpm
#-detached代表后台守护进程方式启动
[root@localhost rabbitmq]# rabbitmq-server -detached
启动服务:rabbitmq-server -detached
查看状态:rabbitmqctl status
关闭服务:rabbitmqctl stop
列出角色:rabbitmqctl list_users
启用管理插件
rabbitmq-plugins enable rabbitmq_management
找到这个文件rabbit.app
[root@localhost rabbitmq]# vim /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.16/ebin/rabbit.app
将:{loopback_users, [<<”guest”>>]},
改为:{loopback_users, []},
原因:rabbitmq从3.3.0开始禁止使用guest/guest权限通过除localhost外的访问