{"id":965,"date":"2026-02-12T23:09:07","date_gmt":"2026-02-12T14:09:07","guid":{"rendered":"http:\/\/www.igoni.kr\/?p=965"},"modified":"2026-02-12T23:09:07","modified_gmt":"2026-02-12T14:09:07","slug":"4-elasticsearch%ec%9d%98-java%ea%b2%bd%eb%a1%9c-%ec%84%a4%ec%a0%95","status":"publish","type":"post","link":"http:\/\/www.igoni.kr\/?p=965","title":{"rendered":"4. elasticsearch\uc758 JAVA\uacbd\ub85c \uc124\uc815"},"content":{"rendered":"<p id=\"bkmrk-%EC%89%98%EC%97%90%EC%84%9C%EB%8A%94-java%EC%8B%A4%ED%96%89%EC%9D%B4-%EC%A0%95%EC%83%81%EC%A0%81%EC%9C%BC%EB%A1%9C-%EB%90%98\">\uc258\uc5d0\uc11c\ub294 java\uc2e4\ud589\uc774 \uc815\uc0c1\uc801\uc73c\ub85c \ub418\uace0 \uc788\ub294\ub370, Elasticseearch\ub97c \uc2e4\ud589\ud558\uba74 java\uacbd\ub85c\ub97c \ucc3e\uc9c0 \ubabb\ud558\ub294 \ubb38\uc81c \ubc1c\uc0dd.<\/p>\n<p id=\"bkmrk-%EA%B7%BC%EB%8D%B0%21-elasticsearch%EB%A5%BC-%EC%8B%A4\">\uadfc\ub370! Elasticsearch\ub97c \uc2e4\ud589\uc2dc\ud0a4\uba74 java\uac00 \uc5c6\ub374\ub2e4\u2026 \uadf8\ub798\uc11c \uc2e4\ud589\uc774 \uc548\ub428.<\/p>\n<pre id=\"bkmrk-sep-%C2%A07-00%3A48%3A55-test\"><code class=\"language-shell\">Sep \u00a07 00:48:55 TEST elasticsearch: which: no java in (\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin)\r\nSep \u00a07 00:48:55 TEST elasticsearch: Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME\r\nSep \u00a07 00:48:55 TEST systemd: elasticsearch.service: main process exited, code=exited, status=1\/FAILURE<\/code><\/pre>\n<p id=\"bkmrk-java%EB%8A%94-%EC%84%A4%EC%B9%98-%EC%9E%98-%EB%90%98%EC%96%B4-%EC%9E%88%EB%8A%94%EB%8D%B0...\">java\ub294 \uc124\uce58 \uc798 \ub418\uc5b4 \uc788\ub294\ub370&#8230;.<\/p>\n<pre id=\"bkmrk-%5Broot%40test-%7E%5D%23-echo-\"><code class=\"language-shell\">[root@TEST ~]# echo $JAVA_HOME\r\n\/usr\/local\/java\r\n\r\n[root@TEST ~]# which java\r\n\/usr\/local\/java\/bin\/java<\/code><\/pre>\n<ol id=\"bkmrk-%ED%95%B4%EA%B2%B0%EC%B1%851.-%2Fetc%2Fprofile%EC%97%90-\">\n<li>\ud574\uacb0\ucc451. \/etc\/profile\uc5d0 JAVA\uacbd\ub85c \uc798 \ub418\uc5b4 \uc788\ub294\uc9c0 \ud655\uc778\n<pre><code class=\"language-shell\">[root@TEST ~]# tail -4 \/etc\/profile\r\n\r\nPATH=$PATH:$JAVA_HOME\/bin\r\nexport JAVA_HOME=\/usr\/local\/java\r\nexport PATH=$JAVA_HOME\/bin:$PATH<\/code><\/pre>\n<\/li>\n<li>\ud574\uacb0\ucc452. Elasticsearch\uc5d0 java\uacbd\ub85c\ub97c \uc124\uc815\n<pre><code class=\"language-shell\">[root@TEST ~]# tail -1 \/etc\/sysconfig\/elasticsearch\r\nJAVA_HOME=\/usr\/local\/java<\/code><\/pre>\n<\/li>\n<\/ol>\n<p id=\"bkmrk-%EC%84%A4%EC%A0%95%ED%95%98%EA%B3%A0-elasticsearch%EC%8B%A4%ED%96%89\">\uc124\uc815\ud558\uace0 Elasticsearch\uc2e4\ud589\ud558\uba74 \ud504\ub85c\uc138\uc2a4 \uc2e4\ud589\ub418\ub294\uac8c \ud655\uc778\ub418\uc2e4\uaebc\uc608\uc694~<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<colgroup>\n<col style=\"width: 99.881%;\" \/><\/colgroup>\n<tbody>\n<tr>\n<td><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-967\" src=\"http:\/\/www.igoni.kr\/wp-content\/uploads\/2026\/02\/0fba58fd-46b5-42bc-86fe-1c85d9887757.png\" alt=\"\" width=\"1024\" height=\"1024\" srcset=\"http:\/\/www.igoni.kr\/wp-content\/uploads\/2026\/02\/0fba58fd-46b5-42bc-86fe-1c85d9887757.png 1024w, http:\/\/www.igoni.kr\/wp-content\/uploads\/2026\/02\/0fba58fd-46b5-42bc-86fe-1c85d9887757-300x300.png 300w, http:\/\/www.igoni.kr\/wp-content\/uploads\/2026\/02\/0fba58fd-46b5-42bc-86fe-1c85d9887757-150x150.png 150w, http:\/\/www.igoni.kr\/wp-content\/uploads\/2026\/02\/0fba58fd-46b5-42bc-86fe-1c85d9887757-768x768.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/td>\n<\/tr>\n<tr>\n<td>perplexity\uc5d0\uc11c \uc0dd\uc131\ud55c AI\uc774\ubbf8\uc9c0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\uc258\uc5d0\uc11c\ub294 java\uc2e4\ud589\uc774 \uc815\uc0c1\uc801\uc73c\ub85c \ub418\uace0 \uc788\ub294\ub370, Elasticseearch\ub97c \uc2e4\ud589\ud558\uba74 java\uacbd\ub85c\ub97c \ucc3e\uc9c0 \ubabb\ud558\ub294 \ubb38\uc81c \ubc1c\uc0dd. \uadfc\ub370! Elasticsearch\ub97c \uc2e4\ud589\uc2dc\ud0a4\uba74 java\uac00&hellip;<\/p>\n","protected":false},"author":1,"featured_media":967,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[263],"tags":[],"class_list":["post-965","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-elk-stack-"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.igoni.kr\/index.php?rest_route=\/wp\/v2\/posts\/965","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.igoni.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.igoni.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.igoni.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.igoni.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=965"}],"version-history":[{"count":1,"href":"http:\/\/www.igoni.kr\/index.php?rest_route=\/wp\/v2\/posts\/965\/revisions"}],"predecessor-version":[{"id":969,"href":"http:\/\/www.igoni.kr\/index.php?rest_route=\/wp\/v2\/posts\/965\/revisions\/969"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.igoni.kr\/index.php?rest_route=\/wp\/v2\/media\/967"}],"wp:attachment":[{"href":"http:\/\/www.igoni.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.igoni.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=965"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.igoni.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}