1. Install dependent packages
Yum Install xmlto gcc gcc-c++ kernel-devel M4 ncurses-devel openssl-devel unixodbc-devel wxbase wxgtk wxGTK-gl perl-y// Install dependent packages
2. Installing Erlang
wget http://erlang.org/download/otp_src_20.2.tar.gz //download Erlang compression pack
TAR-XVF otp_src_20.2.tar.gz-c/usr/local///extract to/user/local directory
MV/USR/LOCAL/OTP_SRC_20.2/USR/LOCAL/OTP//renamed OTP
CD/USR/LOCAL/OTP//Enter OTP
./configure--prefix=/usr/local/erlang//configuration prefix
Make && make install//compile and install
ERL//If able to enter instructions for installation success
Halt (). Quit Erlang's shell
Note: CentOS6 and CentOS7 are different versions, CentOS6 is EL6,CENTOS7 for EL7
3, Installation RABBITMQ
download link https://github.com/rabbitmq/ rabbitmq-server/releases // Find the corresponding version download from above, here is Rabbitmq-server-generic-unix-3.7.3.tar
wget HTTPS://GITHUB.COM/RABBITMQ/RABBITMQ-SERVER/RELEASES/DOWNLOAD/V3.7.3/RABBITMQ-SERVER-GENERIC-UNIX-3.7.3.TAR.XZ
TAR-XVF rabbitmq-server-generic-unix-3.7.3.tar.xz-c/usr/local///Unzip to/usr/local/
MV/USR/LOCAL/RABBITMQ_SERVER-3.7.3/USR/LOCAL/RABBITMQ//Rename
4. Configure environment variables (Erlang and MQ)
Vim/etc/profile//Configure environment variables
Source/etc/profile//Let environment variables take effect
5, RABBITMQ start
Rabbitmq-plugins Enable Rabbitmq_management//open Web Management plugin
rabbitmq-server-detached//Start RABBITMQ service, HTTP://IP Address: 15672/access
Rabbitmqctl Status//view state
Rabbitmqctl Stop//Shutdown service
Rabbitmqctl list_users//List roles
Rabbitmqctl add_user DSD dai123//Add Users
Rabbitmqctl set_user_tags DSD administrator//z modifying user roles
Rabbitmqctl set_permissions-p/DSD "." "." ". *"//Add permission
Permission settings: Rabbitmqctl set_permissions [-P vhostpath] {user} {conf} {write} {read}
Conf: a regular expression match which configuration resources can be accessed by that user.
Write: A regular expression match which configuration resources can be read by the user.
READ: A regular expression match which configuration resources can be accessed by that user.
Note: The http://192.168.2.121:15672/interface cannot be accessed by the external server by default and needs to be configured
Vim/usr/local/rabbitmq/ebin/rabbit.app//find: Loopback_users << "Guest" >> Delete. [{rabbit, [{loopback_users, []}]}].
Then reboot to
Linux Common development environment software-RABBITMQ installation