1. Install Erlang environment
1. Install the dependency files before installing erlang (don't forget this step, or you will report an error later in ./configure): yum install gcc glibc-devel make ncurses-devel openssl-devel xmlto
2. Go to the erlang official website to download the erlang installation package
Official website address: http://www.erlang.org/downloads
wget -c http://erlang.org/download/otp_src_20.2.tar.gz
tar -zxvf otp_src_20.2.tar.gz
cd otp_src_20.2 /
3. Compile and install (I here specify that the compilation and installation will be placed in the /usr/local/erlang directory, you can change this to others):
./configure --prefix=/usr/local/erlang
make && make install
4. Test whether the installation is successful:
cd /usr/local/erlang/bin/
./erl
Enter halt(). to exit the console, note that there is a dot after the halt
5. Configure environment variables
vim /etc/profile
Just add this line at the end: export PATH=$PATH:/usr/local/erlang/bin
2. Install rabbitmq
1. Download the latest installation package from the official website: http://www.rabbitmq.com/releases/rabbitmq-server/
wget -c http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.15/rabbitmq-server-generic-unix-3.6.15.tar.xz
xz -d rabbitmq-server-generic-unix-3.6.15.tar.xz
tar -xvf rabbitmq-server-generic-unix-3.6.15.tar
2. Configure the environment variables of rabbitmq
vim /etc/profile
Add the following configuration at the end: export PATH=$PATH:/usr/local/rabbitmq_server-3.6.15/sbin
3. Basic operations of rabbitmq:
Start: rabbitmq-server start &
shutdown: rabbitmqctl stop
View status: rabbitmqctl status
4. Configure rabbitmq web management plugin
Enable plugins: rabbitmq-plugins enable rabbitmq_management
Access the management page: http://192.168.?.?:15672 The default port is 15672
5. Enable rabbitmq remote access
Add user: rabbitmqctl add_user XRom XRom123 //XRom is the username, XRom123 is the user password
添加权限:rabbitmqctl set_permissions -p "/" XRom ".*" ".*" ".*"
Modify user roles: rabbitmqctl set_user_tags XRom administrator
Then you can access it remotely, and then you can directly configure user permissions and other information