{"id":1123,"date":"2020-07-07T22:43:00","date_gmt":"2020-07-07T13:43:00","guid":{"rendered":"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=1123"},"modified":"2020-07-18T08:55:11","modified_gmt":"2020-07-17T23:55:11","slug":"elasticsearch-%ec%9e%90%ec%a3%bc-%ec%93%b0%ec%9d%b4%eb%8a%94-%eb%aa%85%eb%a0%b9%ec%96%b4%eb%aa%a8%ec%9d%8c","status":"publish","type":"post","link":"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=1123","title":{"rendered":"Elasticsearch \uc790\uc8fc \uc4f0\uc774\ub294 \uba85\ub839\uc5b4\ubaa8\uc74c"},"content":{"rendered":"<h1>Elasticsearch \uc790\uc8fc \uc4f0\uc774\ub294 \uba85\ub839\uc5b4\ubaa8\uc74c<\/h1>\n<h2>\uc0c1\ud0dc\ud655\uc778<\/h2>\n<h3>\uc2e4\ud589\uc0c1\ud0dc \ud655\uc778<\/h3>\n<pre><code class=\"language-bash\">curl -X GET &#039;localhost:9200&#039;\n\ncurl -X GET &#039;localhost:9200\/_cat\/health&#039;<\/code><\/pre>\n<h3>\ub85c\uadf8 \ud655\uc778<\/h3>\n<pre><code class=\"language-bash\">sudo tail -200 \/var\/log\/elasticsearch\/elasticsearch.log<\/code><\/pre>\n<h2>\uc2e4\ud589\/\uc911\uc9c0\/\uc7ac\uc2dc\uc791<\/h2>\n<pre><code class=\"language-bash\">sudo systemctl start elasticsearch\n\nsudo systemctl stop elasticsearch\n\nsudo systemctl restart elasticsearch<\/code><\/pre>\n<h2>\uc124\uc815 \ubcc0\uacbd<\/h2>\n<h3>elasticsearch.yml<\/h3>\n<pre><code class=\"language-bash\">sudo vi \/etc\/elasticsearch\/elasticsearch.yml<\/code><\/pre>\n<h2>\uc0e4\ub4dc \uc7ac\ud560\ub2f9 \uc911\uc9c0 \ubc0f \ud65c\uc131\ud654<\/h2>\n<pre><code class=\"language-bash\">curl -XPUT &#039;localhost:9200\/_cluster\/settings?pretty&#039; -H &#039;Content-Type: application\/json&#039; -d &#039;{\n    &quot;transient&quot; : {\n        &quot;cluster.routing.allocation.enable&quot; : &quot;none&quot;\n    }\n}&#039;\n\ncurl -XPUT &#039;localhost:9200\/_cluster\/settings?pretty&#039; -H &#039;Content-Type: application\/json&#039; -d &#039;{\n    &quot;transient&quot; : {\n        &quot;cluster.routing.allocation.enable&quot; : &quot;all&quot;\n    }\n}&#039;<\/code><\/pre>\n<h2>\ud50c\ub7ec\uadf8\uc778<\/h2>\n<h3>\ud50c\ub7ec\uadf8\uc778 \ud655\uc778 \uc124\uce58 \uc0ad\uc81c<\/h3>\n<pre><code class=\"language-bash\">sudo \/usr\/share\/elasticsearch\/bin\/elasticsearch-plugin install file:\/\/`pwd`\/elasticsearch-analysis-seunjeon-6.1.1.1.zip\n\nsudo \/usr\/share\/elasticsearch\/bin\/elasticsearch-plugin list\nanalysis-seunjeon\n\nsudo \/usr\/share\/elasticsearch\/bin\/elasticsearch-plugin remove analysis-seunjeon<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Elasticsearch \uc790\uc8fc \uc4f0\uc774\ub294 \uba85\ub839\uc5b4\ubaa8\uc74c \uc0c1\ud0dc\ud655\uc778 \uc2e4\ud589\uc0c1\ud0dc \ud655\uc778 curl -X GET &#039;localhost:9200&#039; curl -X GET &#039;localhost:9200\/_cat\/health&#039; \ub85c\uadf8 \ud655\uc778 sudo tail -200 \/var\/log\/elasticsearch\/elasticsearch.log \uc2e4\ud589\/\uc911\uc9c0\/\uc7ac\uc2dc\uc791 sudo systemctl start elasticsearch sudo systemctl stop elasticsearch sudo systemctl restart elasticsearch \uc124\uc815 \ubcc0\uacbd elasticsearch.yml sudo vi \/etc\/elasticsearch\/elasticsearch.yml \uc0e4\ub4dc \uc7ac\ud560\ub2f9 \uc911\uc9c0 \ubc0f \ud65c\uc131\ud654 curl -XPUT &#039;localhost:9200\/_cluster\/settings?pretty&#039; -H &#039;Content-Type: application\/json&#039; -d &#039;{ &quot;transient&quot; :\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.skyer9.pe.kr\/wordpress\/?p=1123\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1123","post","type-post","status-publish","format-standard","hentry","category-elasticsearch"],"_links":{"self":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1123"}],"version-history":[{"count":10,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1123\/revisions"}],"predecessor-version":[{"id":1173,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1123\/revisions\/1173"}],"wp:attachment":[{"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyer9.pe.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}