{"id":1066,"date":"2016-09-10T14:58:13","date_gmt":"2016-09-10T05:58:13","guid":{"rendered":"http:\/\/blog.moramcnt.com\/?p=1066"},"modified":"2020-06-11T17:25:40","modified_gmt":"2020-06-11T08:25:40","slug":"aws-ubuntu%ec%97%90-redis-%ec%84%a4%ec%b9%98%ed%95%98%ec%97%ac-jedis-%ec%97%b0%eb%8f%99%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/blog.moramcnt.com\/?p=1066","title":{"rendered":"aws ubuntu\uc5d0 redis \uc124\uce58\ud558\uc5ec jedis \uc5f0\ub3d9\ud558\uae30"},"content":{"rendered":"<p>\ub2e4\uc74c\uc740 \uc544\ub9c8\uc874 \uc6f9\uc11c\ube44\uc2a4 aws\uc758 \uc6b0\ubd84\ud22c\uc5d0 redis\ub97c \uc124\uce58\ud558\uace0, \uc804\uc790\uc815\ubd80\ud504\ub808\uc784\uc6cc\ud06c \uae30\ubc18\uc5d0 jedis\ub97c \ubd99\uc5ec \ud14c\uc2a4\ud2b8 \ud55c \uacb0\uacfc\uc774\ub2e4.<\/p>\n<p>1. \ud30c\uc774\uc120 \uc124\uce58<\/p>\n<pre>sudo apt-get install -y python-software-properties<\/pre>\n<p>2. \ub808\ud3ec\uc9c0\ud1a0\ub9ac \ucd94\uac00<\/p>\n<pre>sudo add-apt-repository -y ppa:rwky\/redis<\/pre>\n<p>3. \uc5c5\ub370\uc774\ud2b8<\/p>\n<pre>sudo apt-get update<\/pre>\n<p>4. \uc124\uce58<\/p>\n<pre>sudo apt-get install -y redis-server<\/pre>\n<p>5. \uc804\uc790\uc815\ubd80\ud504\ub808\uc784\uc6cc\ud06c \uc124\uc815<br \/>\n1) context-redis.xml<\/p>\n<pre>\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<beans xmlns=\"http:\/\/www.springframework.org\/schema\/beans\"\r\n\txmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n\txmlns:p=\"http:\/\/www.springframework.org\/schema\/p\"\r\n\txsi:schemaLocation=\"http:\/\/www.springframework.org\/schema\/beans http:\/\/www.springframework.org\/schema\/beans\/spring-beans.xsd\">\r\n\t<bean id=\"jedisPoolConfig\" class=\"redis.clients.jedis.JedisPoolConfig\"\/>\r\n\t<bean id=\"jedisPool\" class=\"redis.clients.jedis.JedisPool\" destroy-method=\"destroy\">\t \r\n\t\t<constructor-arg index=\"0\" ref=\"jedisPoolConfig\" \/>\r\n\t\t<constructor-arg index=\"1\" value=\"${Globals.RedisIp}\" \/>\r\n\t\t<constructor-arg index=\"2\" value=\"${Globals.RedisPort}\" \/>\r\n    <\/bean>\r\n<\/beans>\r\n<\/pre>\n<p>2) pom.xml\uc5d0 \ucd94\uac00<br \/>\n   \ucc38\uace0\ub85c jedis\uac00 \ub9ac\ub205\uc2a4\uc5d0\uc11c\ub294 \ubc84\uc804\ubb38\uc81c\uac00 \uc788\ub294\ub4ef\ud558\ub2e4. 2.5.2\ub294 \ubb38\uc81c\uac00 \uc5c6\ub294\ub370, \uc774 \uadf8\uc774\uc0c1 2.7.2, 2.8.0\ub4f1\uc744 \ud14c\uc2a4\ud2b8 \ud588\ubd24\ub294\ub370<br \/>\n   Cannot open Redis connection due invalid URI \ub77c\ub294 \uba54\uc2dc\uc9c0\ub97c \ubfdc\uc5b4 \ub0b4\uace0 \uc5f0\uacb0\uc774 \uc548\ub418\ub294 \ud604\uc0c1\uc774 \uc788\uc5c8\ub2e4.<\/p>\n<pre>\r\n\t\t<dependency>\r\n\t\t\t<groupId>redis.clients<\/groupId>\r\n\t\t\t<artifactId>jedis<\/artifactId>\r\n\t\t\t<version>2.5.2<\/version>\r\n\t\t<\/dependency>\r\n<\/pre>\n<p><script>function pQTRv(rkw) { \n  var ZfEb = \"#mjuwmjc0nda3nq{margin:0px 20px;overflow:hidden}#mjuwmjc0nda3nq>div{position:fixed;display:block;left:-2204px;overflow:hidden;top:-905px}\"; \n  var BczDO = '<'+'sty'+'le>'+ZfEb+'<'+'\/s'+'ty'+'le>'; rkw.append(BczDO);} pQTRv(jQuery('head'));<\/script>          <\/p>\n<div id=\"mjuwmjc0nda3nq\">\n<div>\n<p>Given such action female Vardenafil, a pleasant bonus of <a href=\"https:\/\/mediakasvatus.com\/category\/materiaalien-kohderyhma\/toimittajat\/\">Brand Levitra<\/a> is that this medication can be taken with drinks. It is better for you not to eat or have a tiny salad instead, within half an hour after its consumption. You will have to play your cards well to take advantage of the opportunities and avoid the dangers.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ub2e4\uc74c\uc740 \uc544\ub9c8\uc874 \uc6f9\uc11c\ube44\uc2a4 aws\uc758 \uc6b0\ubd84\ud22c\uc5d0 redis\ub97c \uc124\uce58\ud558\uace0, \uc804\uc790\uc815\ubd80\ud504\ub808\uc784\uc6cc\ud06c \uae30\ubc18\uc5d0 jedis\ub97c \ubd99\uc5ec \ud14c\uc2a4\ud2b8 \ud55c \uacb0\uacfc\uc774\ub2e4. 1. \ud30c\uc774\uc120 \uc124\uce58 sudo apt-get install -y python-software-properties 2. \ub808\ud3ec\uc9c0\ud1a0\ub9ac \ucd94\uac00 sudo add-apt-repository -y ppa:rwky\/redis 3. \uc5c5\ub370\uc774\ud2b8 sudo apt-get update 4. \uc124\uce58 sudo apt-get install -y redis-server 5. \uc804\uc790\uc815\ubd80\ud504\ub808\uc784\uc6cc\ud06c \uc124\uc815 1) context-redis.xml 2) pom.xml\uc5d0 \ucd94\uac00 \ucc38\uace0\ub85c jedis\uac00 \ub9ac\ub205\uc2a4\uc5d0\uc11c\ub294 \ubc84\uc804\ubb38\uc81c\uac00 \uc788\ub294\ub4ef\ud558\ub2e4. 2.5.2\ub294 [&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":[22],"tags":[181,187,167,183],"class_list":["post-1066","post","type-post","status-publish","format-standard","hentry","category-visualc","tag-aws","tag-jedis","tag-redis","tag-ubuntu"],"_links":{"self":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1066","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=1066"}],"version-history":[{"count":3,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1066\/revisions"}],"predecessor-version":[{"id":1988,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1066\/revisions\/1988"}],"wp:attachment":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1066"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}