安裝目錄:/usr/local
git
安裝包RabbitMQ,rabbitmq-server-generic-unix-3.8.9.tar.xz,官網地址:Releases · rabbitmq/rabbitmq-server · GitHubgithub
安裝包erlang,otp_src_23.1.4.tar.gz,下載:Erlang官網下載地址vim
yum install -y gcc glibc-devel make ncurses-devel openssl-devel xmlto
tar zxf otp_src_23.1.4.tar.gz
./configure --prefix=/usr/local/erlang
(若是提示缺乏wxwidget什麼的,非GUI可忽略)make
(能夠使用 -j
選項加快編譯)make install
/url/local/erlang/bin/erl
1+1.
halt().
/etc/profile
中
vim /etc/profile
export PATH=$PATH:/usr/local/erlang/bin
source /etc/profile
tar xf rabbitmq-server-generic-unix-3.8.9.tar.xz -C /usr/local
/usr/local/rabbitmq/sbin
到環境變量中,並source生效rabbitmq-server -detached
rabbitmqctl status
rabbitmqctl stop
mkdir -p /etc/rabbitmq
rabbitmq-plugins enable rabbitmq_management
http://localhost:15672
rabbitmqctl add_user user233 pwd233
rabbitmqctl set_permissions -p "/" user233 ".*" ".*" ".*"
rabbitmqctl set_user_tags user233 administrator
RabbitMQ Delayed Message Plugin
/usr/local/rabbitmq/plugins/
中rabbitmq-plugins list
,找到插件名(通常是rabbitmq_delayed_message_exchange
,瞅一眼確認一下)rabbitmq-plugins enable rabbitmq_delayed_message_exchange
ReferenceError: disable_stats is not defined ReferenceError "rabbitmq"