{"id":554,"date":"2022-08-09T14:01:28","date_gmt":"2022-08-09T05:01:28","guid":{"rendered":"https:\/\/centos.ihavenomoney.co.kr\/?page_id=554"},"modified":"2022-08-09T18:02:17","modified_gmt":"2022-08-09T09:02:17","slug":"redis-%ec%84%a4%ec%b9%98-%eb%b0%8f-%ec%84%a4%ec%a0%95","status":"publish","type":"page","link":"https:\/\/centos.ihavenomoney.co.kr\/?page_id=554","title":{"rendered":"Redis \uc124\uce58 \ubc0f \uc124\uc815"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/centos.ihavenomoney.co.kr\/wp-content\/uploads\/2022\/08\/redis_512x512.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/centos.ihavenomoney.co.kr\/wp-content\/uploads\/2022\/08\/redis_512x512.png\" alt=\"\" class=\"wp-image-557\" width=\"126\" height=\"126\" srcset=\"https:\/\/centos.ihavenomoney.co.kr\/wp-content\/uploads\/2022\/08\/redis_512x512.png 256w, https:\/\/centos.ihavenomoney.co.kr\/wp-content\/uploads\/2022\/08\/redis_512x512-150x150.png 150w, https:\/\/centos.ihavenomoney.co.kr\/wp-content\/uploads\/2022\/08\/redis_512x512-225x225.png 225w\" sizes=\"auto, (max-width: 126px) 100vw, 126px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">1.\uc124\uce58<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">yum -y install redis<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2.\uc2e4\ud589, \uc911\uc9c0, \uc7ac\uc2dc\uc791<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \"># systemctl start redis\n# systemctl stop redis\n# systemctl restart redis<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3.\uc0c1\ud0dc\ud655\uc778<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \"># systemctl status redis\n\u25cf redis-server.service - Advanced key-value store\n     Loaded: loaded (\/lib\/systemd\/system\/redis-server.service; enabled; vendor preset: enabled)\n     Active: active (running) since Thu 2022-07-07 12:02:31 UTC; 5s ago\n       Docs: http:\/\/redis.io\/documentation,\n             man:redis-server(1)\n    Process: 1363 ExecStart=\/usr\/bin\/redis-server \/etc\/redis\/redis.conf (code=exited, status=0\/SUCCESS)\n   Main PID: 1379 (redis-server)\n      Tasks: 4 (limit: 2274)\n     Memory: 1.8M\n     CGroup: \/system.slice\/redis-server.service\n             \u2514\u25001379 \/usr\/bin\/redis-server 127.0.0.1:6379<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4.\uc124\uc815\ud30c\uc77c<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \"># vi \/etc\/redis.conf<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4.1\ubaa8\ub4e0 \uc544\uc774\ud53c \ud5c8\uc6a9<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">#bind 127.0.0.1\nbind 0.0.0.0<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4.2\ud3ec\ud2b8\ubcc0\uacbd<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">#port 6379 \nport 19876\n<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4.3\uc811\uc18dPassword \uc124\uc815<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">requirepass pas232332<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4.4\uc798\ub418\ub294\uc9c0 \ud655\uc778<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">redis-cli ping\nPONG<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4.5 redis-server \uae30\ud0c0 \uc815\ubcf4 \ud655\uc778<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">[root@localhost ~]# redis-server\n1786:C 09 Aug 2022 16:33:53.917 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo\n1786:C 09 Aug 2022 16:33:53.917 # Redis version=7.0.2, bits=64, commit=00000000, modified=0, pid=1786, just started\n1786:C 09 Aug 2022 16:33:53.917 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server \/path\/to\/redis.conf\n1786:M 09 Aug 2022 16:33:53.918 * Increased maximum number of open files to 10032 (it was originally set to 1024).\n1786:M 09 Aug 2022 16:33:53.918 * monotonic clock: POSIX clock_gettime\n                _._\n           _.-``__ ''-._\n      _.-``    `.  `_.  ''-._           Redis 7.0.2 (00000000\/0) 64 bit\n  .-`` .-```.  ```\\\/    _.,_ ''-._\n (    '      ,       .-`  | `,    )     Running in standalone mode\n |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379\n |    `-._   `._    \/     _.-'    |     PID: 1786\n  `-._    `-._  `-.\/  _.-'    _.-'\n |`-._`-._    `-.__.-'    _.-'_.-'|\n |    `-._`-._        _.-'_.-'    |           https:\/\/redis.io\n  `-._    `-._`-.__.-'_.-'    _.-'\n |`-._`-._    `-.__.-'    _.-'_.-'|\n |    `-._`-._        _.-'_.-'    |\n  `-._    `-._`-.__.-'_.-'    _.-'\n      `-._    `-.__.-'    _.-'\n          `-._        _.-'\n              `-.__.-'\n\n1786:M 09 Aug 2022 16:33:53.920 # WARNING: The TCP backlog setting of 511 cannot be enforced because \/proc\/sys\/net\/core\/somaxconn is set to the lower value of 128.\n1786:M 09 Aug 2022 16:33:53.920 # Server initialized\n1786:M 09 Aug 2022 16:33:53.920 * Ready to accept connections\n<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">5. \ub85c\uceec\uc5d0 \uc811\uc18d<\/h3>\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<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">5.0  \ud638\uc2a4\ud2b8, \ud3ec\ud2b8, \ube44\ube48\uc73c\ub85c \uc811\uc18d<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \" >[root@localhost ~]# redis-cli -h 127.0.0.1 -p 19876 -a pas232332\nWarning: Using a password with '-a' or '-u' option on the command line interface may not be safe.\n127.0.0.1:19876&gt;\n<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">5.1 \ub370\uc774\ud0c0 \ub123\uae30<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">127.0.0.1:6379&gt; set 5 \"five\"\n\n<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">5.2 \ub370\uc774\ud0c0 \ubcf4\uae30 <\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">127.0.0.1:6379&gt; get 5 \n\"five\"\n\n<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">6. Command \uc5d0\uc11c \ubc14\ub85c \ub123\uace0 \ubcf4\uae30 <\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">[root@localhost ~]# redis-cli --raw set \"KR\" \"\ud55c\uae00\"\nOK\n[root@localhost ~]# redis-cli --raw get \"KR\"\n\ud55c\uae00\n\n\n<\/pre><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\uc124\uce58 2.\uc2e4\ud589, \uc911\uc9c0, \uc7ac\uc2dc\uc791 3.\uc0c1\ud0dc\ud655\uc778 4.\uc124\uc815\ud30c\uc77c 4.1\ubaa8\ub4e0 \uc544\uc774\ud53c \ud5c8\uc6a9 4.2\ud3ec\ud2b8\ubcc0\uacbd 4.3\uc811\uc18dPassword \uc124\uc815 4.4\uc798\ub418\ub294\uc9c0 \ud655\uc778 4.5 redis-server \uae30\ud0c0 \uc815\ubcf4 \ud655\uc778 5. \ub85c\uceec\uc5d0 \uc811\uc18d 5.0 \ud638\uc2a4\ud2b8, \ud3ec\ud2b8, \ube44\ube48\uc73c\ub85c \uc811\uc18d 5.1 \ub370\uc774\ud0c0 \ub123\uae30 5.2 \ub370\uc774\ud0c0 \ubcf4\uae30 6. Command \uc5d0\uc11c \ubc14\ub85c \ub123\uace0 \ubcf4\uae30<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-554","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=554"}],"version-history":[{"count":7,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/554\/revisions"}],"predecessor-version":[{"id":570,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/554\/revisions\/570"}],"wp:attachment":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}