{"id":500,"date":"2023-05-17T11:47:23","date_gmt":"2023-05-17T02:47:23","guid":{"rendered":"https:\/\/ubuntu.auctionpro.co.kr\/?page_id=500"},"modified":"2023-06-01T10:55:23","modified_gmt":"2023-06-01T01:55:23","slug":"redis-on-ubuntu-22-04","status":"publish","type":"page","link":"https:\/\/ubuntu.auctionpro.co.kr\/?page_id=500","title":{"rendered":"Redis on Ubuntu 22.04"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview : Redis  \uc124\uce58 \ubc0f \uc811\uc18d \ud14c\uc2a4\ud2b8 <\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">1.\uc124\uce58 \ubc84\uc804 \ud655\uc778<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">sudo apt policy redis-server\nredis-server:\n  Installed: (none)\n  Candidate: 5:5.0.7-2 500\n  Version table:\n     5:5.0.7-2 500\n        500 http:\/\/mirrors.digitalocean.com\/ubuntu focal\/universe amd64 Packages<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">2.\uc124\uce58 <\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><\/div>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">sudo apt -y install redis-server\nredis-server -v<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">3.\uc790\ub3d9 \uc2e4\ud589 \uc138\ud305<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">sudo systemctl enable --now redis-server<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">4.\uc138\ud305 \ubcc0\uacbd<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">sudo vim \/etc\/redis\/redis.conf\n\nbind 0.0.0.0  &lt;- Change\n\nrequirepass MyPasswd  &lt;- Add<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">5.\uc801\uc6a9 \uc7ac\uc2dc\uc791<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">sudo systemctl restart redis-server\n\nsystemctl status redis-server<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">6.\ubc29\ud654\ubcbd \uc624\ud508<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">sudo ufw allow 6379\/tcp\nsudo ufw reload<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">7.\uc811\uc18d \ud14c\uc2a4\ud2b8<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">redis-cli\n127.0.0.1:6379&gt;\n\n127.0.0.1:6379&gt; AUTH mypasswd\nOK\n\n<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview : Redis \uc124\uce58 \ubc0f \uc811\uc18d \ud14c\uc2a4\ud2b8 1.\uc124\uce58 \ubc84\uc804 \ud655\uc778 2.\uc124\uce58 3.\uc790\ub3d9 \uc2e4\ud589 \uc138\ud305 4.\uc138\ud305 \ubcc0\uacbd 5.\uc801\uc6a9 \uc7ac\uc2dc\uc791 6.\ubc29\ud654\ubcbd \uc624\ud508 7.\uc811\uc18d \ud14c\uc2a4\ud2b8<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-500","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=500"}],"version-history":[{"count":3,"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/500\/revisions"}],"predecessor-version":[{"id":508,"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/500\/revisions\/508"}],"wp:attachment":[{"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}