Commit 58abd988 authored by daidekun's avatar daidekun

fix

parent 5ac27528
......@@ -13,8 +13,8 @@ nohup /usr/sbin/rabbitmq-server > /tmp/rabbitmq.out &
echo "sleep 15"
sleep 15
echo "get definitions from 192.168.4.15"
response=$(curl -X GET -H "Authorization: Basic cmFiYml0X2FkbWluOmFiYzEyMzQ=" "http://172.16.1.231:15672/api/definitions")
curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic cWE6cWF0ZXN0" -d $response "http://localhost:15672/api/definitions"
echo "get definitions from 172.16.3.111"
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://192.168.6.161:15672/api/definitions"
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