{"id":1156,"date":"2016-08-29T14:12:38","date_gmt":"2016-08-29T05:12:38","guid":{"rendered":"http:\/\/blog.moramcnt.com\/?p=1156"},"modified":"2016-08-29T14:12:50","modified_gmt":"2016-08-29T05:12:50","slug":"rabbitmq-mqtt-%ec%84%a4%ec%b9%98-%eb%b0%8f-%ed%99%98%ea%b2%bd%ec%84%a4%ec%a0%95","status":"publish","type":"post","link":"http:\/\/blog.moramcnt.com\/?p=1156","title":{"rendered":"RabbitMQ MQTT \uc124\uce58 \ubc0f \ud658\uacbd\uc124\uc815"},"content":{"rendered":"<p>\t1. \ub2e4\uc6b4\ub85c\ub4dc \ubc0f \uc124\uce58<br \/>\n\t\ta. \uc5bc\ub791(erlang) \uc124\uce58<br \/>\n\t\thttp:\/\/www.erlang.org\/downloads \uc5d0\uc11c \ub2e4\uc6b4\ub85c\ub4dc \ud558\uc5ec \uc124\uce58<\/p>\n<p>\t<strong>1. \ub2e4\uc6b4\ub85c\ub4dc \ubc0f \uc124\uce58<\/strong><br \/>\n1) \uc5bc\ub791(erlang) \uc124\uce58<br \/>\nhttp:\/\/www.erlang.org\/downloads \uc5d0\uc11c \ub2e4\uc6b4\ub85c\ub4dc \ud558\uc5ec \uc124\uce58<br \/>\n<a href=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2016\/08\/rabbitmq01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2016\/08\/rabbitmq01.png\" alt=\"rabbitmq01\" width=\"499\" height=\"388\" class=\"alignnone size-full wp-image-1157\" \/><\/a><\/p>\n<p>2) RabbitMq \uc124\uce58<br \/>\nhttps:\/\/www.rabbitmq.com\/download.html \uc5d0\uc11c \ub2e4\uc6b4\ub85c\ub4dc \ud558\uc5ec \uc124\uce58<br \/>\n<a href=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2016\/08\/rabbitmq02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2016\/08\/rabbitmq02.png\" alt=\"rabbitmq02\" width=\"300\" height=\"233\" class=\"alignnone size-medium wp-image-1158\" \/><\/a><\/p>\n<p><strong>2. \uad00\ub9ac\ucf58\uc194 \ud65c\uc131\ud654<\/strong><br \/>\n\uc6f9\uc744 \ud1b5\ud574 MQ\uc758 \uc0c1\ud0dc \ub4f1\uc744 \uad00\ub9ac\ud558\uae30 \uc704\ud55c \uad00\ub9ac\ucf58\uc194\ub85c\uc368,<br \/>\n\uc124\uce58\ud3f4\ub354\uc758 C:\\Program Files\\RabbitMQ Server\\rabbitmq_server-3.6.5\\sbin\uc5d0\uc11c <\/p>\n<pre>\r\nrabbitmq-plugins enable rabbitmq_management \r\n<\/pre>\n<p>\uc744 \uc785\ub825\ud558\uc5ec \ud65c\uc131\ud654<\/p>\n<p><a href=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2016\/08\/rabbitmq03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2016\/08\/rabbitmq03.png\" alt=\"rabbitmq03\" width=\"300\" height=\"176\" class=\"alignnone size-medium wp-image-1159\" \/><\/a><\/p>\n<p>\ubc18\uc601\uc740 RabbitMQ \uc11c\ube44\uc2a4\ub97c \uc7ac\uc2dc\uc791\ud574\uc57c \ud55c\ub2e4.<br \/>\n\uad00\ub9ac\uc790\uad8c\ud55c\uc73c\ub85c \uba85\ub839\ud504\ub86c\ud504\ud2b8\ub97c \ub744\uc6cc \uc544\ub798\uc640 \uac19\uc774 \uc785\ub825<\/p>\n<pre>\r\nC:\\Program Files\\RabbitMQ Server\\rabbitmq_server-3.6.5\\sbin\\rabbitmq-service stop\r\nC:\\Program Files\\RabbitMQ Server\\rabbitmq_server-3.6.5\\sbin\\rabbitmq-service start\r\n<\/pre>\n<p>\uadf8\ub9ac\uace0 \uad00\ub9ac\ucf58\uc194\ub85c \ub85c\uadf8\uc778\ud558\uae30 \uc704\ud558\uc5ec \uc6f9\uc0c1\uc5d0\uc11c \uc544\ub798\uc640 \uac19\uc774 \uc785\ub825\ud558\uba74 \ub41c\ub2e4.<\/p>\n<pre>\r\nhttp:\/\/localhost:15672\/\r\n<\/pre>\n<p>\uae30\ubcf8 ID\/PASSWORD\ub294 guest\/guest \uc784<\/p>\n<p><strong>3. \ubc29\ud654\ubcbd \uc124\uc815<\/strong><br \/>\n\uc544\ub798 \ud3ec\ud2b8\ub97c \ubc29\ud654\ubcbd\uc5d0\uc11c Open\ud55c\ub2e4.<br \/>\n&#8211; 5672 : AMQP \ud3ec\ud2b8<br \/>\n&#8211; 15672 :  \uc6f9 \uad00\ub9ac \ucf58\uc194<br \/>\n&#8211; 4369 :  EPMD (Erlang  Port Mapper Daemon)<br \/>\n&#8211; 1883 : MQTT \uc811\uc18d \ud3ec\ud2b8  <\/p>\n<p><a href=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2016\/08\/rabbitmq04.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2016\/08\/rabbitmq04.png\" alt=\"rabbitmq04\" width=\"300\" height=\"286\" class=\"alignnone size-medium wp-image-1160\" \/><\/a><\/p>\n<p><strong>4. \uc0ac\uc6a9\uc790 \uacc4\uc815 \uc0dd\uc131<\/strong><br \/>\n1) http:\/\/localhost:15672\/ \uc5d0 guest\/guest \ub85c \ub85c\uadf8\uc778<br \/>\n2) Admin > Users \uba54\ub274\ub85c \uc774\ub3d9\ud558\uc5ec \uacc4\uc815 \ub4f1\ub85d<br \/>\n3) Admin \uacc4\uc815 \ub4f1\ub85d<br \/>\n<a href=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2016\/08\/rabbitmq05.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2016\/08\/rabbitmq05.png\" alt=\"rabbitmq05\" width=\"300\" height=\"130\" class=\"alignnone size-medium wp-image-1161\" \/><\/a><\/p>\n<p>Guest \uacc4\uc815\uc744 \uc5c6\uc560\uace0 admin\uc744 \ub4f1\ub85d\ud558\uae30 \uc704\ud574 \uc704\uc640 \uac19\uc774 \uc785\ub825<br \/>\n\ucc38\uace0: \ubaa8\ub4e0\uad8c\ud55c\uc744 \uc8fc\ub824\uba74 Tags \uc120\ud0dd\uc2dc Admin\uc744 \ud074\ub9ad\ud574\uc57c \ud55c\ub2e4.<\/p>\n<p>4) \uc11c\ube44\uc2a4 \uacc4\uc815 \ub4f1\ub85d<br \/>\n\uc544\ub798\uc640 \uac19\uc774 \uc11c\ube44\uc2a4\ub85c\ub9cc \uc0ac\uc6a9\ud560 \uacc4\uc815\uc740 Tags\uac00 \uc544\ubb34\uac83\ub3c4 \uc5c6\ub3c4\ub85d \ud55c\ub2e4.<\/p>\n<p><a href=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2016\/08\/rabbitmq06.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2016\/08\/rabbitmq06.png\" alt=\"rabbitmq06\" width=\"300\" height=\"145\" class=\"alignnone size-medium wp-image-1162\" \/><\/a><\/p>\n<p>5) \ud37c\ubbf8\uc158 \ubd80\uc5ec<br \/>\n&#8211; \uc704\uc5d0\uc11c \ub4f1\ub85d\ud55c admin\uacfc testuser \uacc4\uc815\uc5d0 \ub300\ud558\uc5ec \ud37c\ubbf8\uc158\uc744 \ubd80\uc5ec\ud558\uae30 \uc704\ud574 \ud574\ub2f9 \uacc4\uc815\uc744 \ud074\ub9ad<br \/>\n&#8211; Virtual Host\ub97c \uc120\ud0dd\ud558\uace0 \uc544\ub798 Set Permission\uc744 \ud074\ub9ad<br \/>\n&#8211; \ube44\ubc00\ubc88\ud638\ub97c \ub123\uace0 \uc0ac\uc6a9\uc790 \uc815\ubcf4 \uc5c5\ub370\uc774\ud2b8<br \/>\n<a href=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2016\/08\/rabbitmq07.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.moramcnt.com\/wp-content\/uploads\/2016\/08\/rabbitmq07.png\" alt=\"rabbitmq07\" width=\"300\" height=\"140\" class=\"alignnone size-medium wp-image-1163\" \/><\/a>\t<\/p>\n<p>6) \uba85\ub839\uc5b4\ub97c \ud1b5\ud55c \uacc4\uc815 \uad00\ub9ac<br \/>\n&#8211; \uacc4\uc815\uc0dd\uc131 : rabbitmqctl add_user [\uc0ac\uc6a9\uc790] [\ube44\ubc00\ubc88\ud638]\n&#8211; \uacc4\uc815\uc0ad\uc81c : rabbitmqctl delete_user [\uc0ac\uc6a9\uc790]\n&#8211; \ube44\ubc00\ubc88\ud638 \ubcc0\uacbd : rabbitmqctl change_password [\uc0ac\uc6a9\uc790] [\uc0c8\ub85c\uc6b4 \ube44\ubc00\ubc88\ud638]\n&#8211; \uacc4\uc815\ub9ac\uc2a4\ud2b8 \ubcf4\uae30 : rabbitmqctl list_users<br \/>\n&#8211; \ud0dc\uadf8\ubd80\uc5ec : rabbitmqctl set_user_tags [\uc0ac\uc6a9\uc790] [\ud0dc\uadf8]\t<\/p>\n<p><strong>5. MQTT \ud65c\uc131\ud654<\/string><br \/>\n\ub2e4\uc74c \uba85\ub839\uc744 \ud1b5\ud574 \ud65c\uc131\ud654<\/p>\n<pre>\r\nrabbitmq-plugins enable rabbitmq_mqtt\r\n<\/pre>\n<p><strong>6. \ud658\uacbd\uc124\uc815 \ud30c\uc77c<\/strong><br \/>\n&#8211; \ud574\ub2f9\uc0ac\uc6a9\uc790 \uacc4\uc815\uc758 \ud558\uc704 \ud3f4\ub354\uc5d0 \uc788\ub294 (Ex: C:\\Users\\yomile\\AppData\\Roaming\\RabbitMQ) rabbitmq.config \ud30c\uc77c \uc218\uc815<\/p>\n<pre>\r\n[{rabbit,        [{tcp_listeners,    [5672]}]},\r\n {rabbitmq_mqtt, [{tcp_listeners,    [1883]}]}\r\n].\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1. \ub2e4\uc6b4\ub85c\ub4dc \ubc0f \uc124\uce58 a. \uc5bc\ub791(erlang) \uc124\uce58 http:\/\/www.erlang.org\/downloads \uc5d0\uc11c \ub2e4\uc6b4\ub85c\ub4dc \ud558\uc5ec \uc124\uce58 1. \ub2e4\uc6b4\ub85c\ub4dc \ubc0f \uc124\uce58 1) \uc5bc\ub791(erlang) \uc124\uce58 http:\/\/www.erlang.org\/downloads \uc5d0\uc11c \ub2e4\uc6b4\ub85c\ub4dc \ud558\uc5ec \uc124\uce58 2) RabbitMq \uc124\uce58 https:\/\/www.rabbitmq.com\/download.html \uc5d0\uc11c \ub2e4\uc6b4\ub85c\ub4dc \ud558\uc5ec \uc124\uce58 2. \uad00\ub9ac\ucf58\uc194 \ud65c\uc131\ud654 \uc6f9\uc744 \ud1b5\ud574 MQ\uc758 \uc0c1\ud0dc \ub4f1\uc744 \uad00\ub9ac\ud558\uae30 \uc704\ud55c \uad00\ub9ac\ucf58\uc194\ub85c\uc368, \uc124\uce58\ud3f4\ub354\uc758 C:\\Program Files\\RabbitMQ Server\\rabbitmq_server-3.6.5\\sbin\uc5d0\uc11c rabbitmq-plugins enable rabbitmq_management \uc744 \uc785\ub825\ud558\uc5ec \ud65c\uc131\ud654 \ubc18\uc601\uc740 RabbitMQ [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[20,2],"tags":[66,208],"class_list":["post-1156","post","type-post","status-publish","format-standard","hentry","category-mq","category-2","tag-mqtt","tag-rabbitmq"],"_links":{"self":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1156"}],"version-history":[{"count":8,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1156\/revisions"}],"predecessor-version":[{"id":1171,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1156\/revisions\/1171"}],"wp:attachment":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1156"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}