Commit 0a8e758d authored by 张 斌's avatar 张 斌

给rabbitmq装rabbitmq_delayed_message_exchange 插件

parent e3de5266
...@@ -20,6 +20,7 @@ RUN apt-get update \ ...@@ -20,6 +20,7 @@ RUN apt-get update \
&& apt-get install -y telnet \ && apt-get install -y telnet \
&& apt-get install -y openssh-server \ && apt-get install -y openssh-server \
&& apt-get install -y curl \ && apt-get install -y curl \
&& apt-get install -y wget \
&& /etc/init.d/ssh start && /etc/init.d/ssh start
WORKDIR /home/quant_group/rabbitmq WORKDIR /home/quant_group/rabbitmq
......
...@@ -13,8 +13,14 @@ nohup /usr/sbin/rabbitmq-server > /tmp/rabbitmq.out & ...@@ -13,8 +13,14 @@ nohup /usr/sbin/rabbitmq-server > /tmp/rabbitmq.out &
echo "sleep 15" echo "sleep 15"
sleep 15 sleep 15
wget -c "https://bintray.com/rabbitmq/community-plugins/download_file?file_path=rabbitmq_delayed_message_exchange-0.0.1.ez" -O rabbitmq_delayed_message_exchange-0.0.1.ez -P /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.11/plugins
rabbitmq-plugins enable /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.11/plugins/rabbitmq_delayed_message_exchange
echo "get definitions from 172.16.3.111" echo "get definitions from 172.16.3.111"
response=$(curl -X GET -H "Authorization: Basic cWE6cWF0ZXN0" "http://172.16.3.111:15672/api/definitions") response=$(curl -X GET -H "Authorization: Basic cWE6cWF0ZXN0" "http://172.16.3.111:15672/api/definitions")
curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic cWE6cWF0ZXN0" -d $response "http://localhost:15672/api/definitions" curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic cWE6cWF0ZXN0" -d $response "http://localhost:15672/api/definitions"
tail -f /tmp/rabbitmq.out tail -f /tmp/rabbitmq.out
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment