{"id":1952,"date":"2014-04-29T19:06:26","date_gmt":"2014-04-29T10:06:26","guid":{"rendered":"http:\/\/hyunsu.com\/wordpress\/?p=1952"},"modified":"2014-04-29T19:06:26","modified_gmt":"2014-04-29T10:06:26","slug":"solr-%ec%a0%91%ea%b7%bc%ec%a0%9c%ed%95%9c-%ec%84%a4%ec%a0%95","status":"publish","type":"post","link":"https:\/\/hyunsu.com\/wordpress\/?p=1952","title":{"rendered":"solr \uc811\uadfc\uc81c\ud55c \uc124\uc815"},"content":{"rendered":"<p>IP\ub85c \uc811\uadfc\uc81c\ud55c \ud560\ub824\uba74 Context\uc548\uc5d0 \uc124\uc815\ud574\uc8fc\uba74 \ub41c\ub2e4.<\/p>\n<p>tomcat\/conf\/Catalina\/localhost\/solr.xml \ud30c\uc77c\uc5d0 Value \ucd94\uac00\ud55c\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \">&lt;?xml version='1.0' encoding='utf-8'?&gt;\r\n\r\n&lt;Context crossContext=\"true\" debug=\"0\" docBase=\"\/home\/solr\/tomcat\/webapps\/solr\" priviledged=\"true\"&gt;\r\n&lt;Environment name=\"solr\/home\" override=\"true\" type=\"java.lang.String\" value=\"\/search_data\/solr\/example\/solr\" \/&gt;\r\n&lt;Valve className=\"org.apache.catalina.valves.RemoteAddrValve\"\r\nallow=\"10\\.0\\.96\\.*|114\\.119\\.135\\.116|114\\.119\\.145\\.146|210\\.25\\.139\\.101\" \/&gt;\r\n&lt;\/Context&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>\uc8fc\uc758\ud560\uc810\uc740 IP\uc801\uc744 \ub54c . \uc55e\uc5d0 \\ \ubd99\uc5ec \ud55c\ub2e4. \uc548 \uadf8\ub7ec\uba74 \uc815\uaddc\ud45c\ud604\uc2dd\uc774 \ub418\uba74\uc11c . \ub294 \uc544\ubb34 \ubb38\uc790\ub77c\ub294 \ub73b\uc774 \ub41c\ub2e4.<br \/>\n\uadf8\ub9ac\uace0 \uc5ec\ub7ec\uac1c\uc758 IP\ub97c \ub123\uc744\ub824\uba74 | \ub85c \uad6c\ubd84\uc790\ub97c \uc4f0\uba74 \ub41c\ub2e4.<\/p>\n<p>&nbsp;<br \/>\nid, pass \ud615\uc2dd\uc73c\ub85c \uc811\uadfc\uc81c\ud560\ub824\uba74<\/p>\n<p>tomcat\/conf\/tomcat-users.xml \ud30c\uc77c\uc5d0 \uc720\uc800\uc815\ubcf4 \ucd94\uac00\ud558\uace0<\/p>\n<pre class=\"lang:default decode:true \">&lt;tomcat-users&gt;\r\n&lt;role rolename=\"solr \"\/&gt;\r\n&lt;user username=\"solr\" password=\"1234\" roles=\"solr\"\/&gt;\r\n&lt;\/tomcat-users&gt;<\/pre>\n<p>&nbsp;<br \/>\ntomcat\/webapps\/solr\/WEB-INF\/web.xml \uc5d0 \uc544\ub798 \ub0b4\uc6a9 \ucd94\uac00\ud55c\ub2e4.<\/p>\n<pre class=\"lang:default decode:true \">&lt;web-app&gt;\r\n....\r\n&lt;security-constraint&gt;\r\n&lt;web-resource-collection&gt;\r\n&lt;web-resource-name&gt;Solr Lockdown&lt;\/web-resource-name&gt;\r\n&lt;url-pattern&gt;\/&lt;\/url-pattern&gt;\r\n&lt;\/web-resource-collection&gt;\r\n&lt;auth-constraint&gt;\r\n&lt;role-name&gt;solr&lt;\/role-name&gt;\r\n&lt;role-name&gt;admin&lt;\/role-name&gt;\r\n&lt;\/auth-constraint&gt;\r\n&lt;\/security-constraint&gt;\r\n&lt;login-config&gt;\r\n&lt;auth-method&gt;BASIC&lt;\/auth-method&gt;\r\n&lt;realm-name&gt;Solr&lt;\/realm-name&gt;\r\n&lt;\/login-config&gt;\r\n&lt;\/web-app&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>\uc774\ubd80\ubd84\uc5d0\uc11c rolename\uc744 \ub9e4\uce6d\uc2dc\ucf1c\uc57c \ud55c\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IP\ub85c \uc811\uadfc\uc81c\ud55c \ud560\ub824\uba74 Context\uc548\uc5d0 \uc124\uc815\ud574\uc8fc\uba74 \ub41c\ub2e4. tomcat\/conf\/Catalina\/localhost\/solr.xml \ud30c\uc77c\uc5d0 Value \ucd94\uac00\ud55c\ub2e4. &nbsp; &lt;?xml version=&#8217;1.0&#8242; encoding=&#8217;utf-8&#8242;?&gt; &lt;Context crossContext=&#8221;true&#8221; debug=&#8221;0&#8243; docBase=&#8221;\/home\/solr\/tomcat\/webapps\/solr&#8221; priviledged=&#8221;true&#8221;&gt; &lt;Environment name=&#8221;solr\/home&#8221; override=&#8221;true&#8221; type=&#8221;java.lang.String&#8221; value=&#8221;\/search_data\/solr\/example\/solr&#8221; \/&gt; &lt;Valve className=&#8221;org.apache.catalina.valves.RemoteAddrValve&#8221; allow=&#8221;10\\.0\\.96\\.*|114\\.119\\.135\\.116|114\\.119\\.145\\.146|210\\.25\\.139\\.101&#8243; \/&gt; &lt;\/Context&gt; &nbsp; \uc8fc\uc758\ud560\uc810\uc740 IP\uc801\uc744 \ub54c . \uc55e\uc5d0 \\ \ubd99\uc5ec \ud55c\ub2e4. \uc548 \uadf8\ub7ec\uba74 \uc815\uaddc\ud45c\ud604\uc2dd\uc774 \ub418\uba74\uc11c . \ub294 \uc544\ubb34 \ubb38\uc790\ub77c\ub294 \ub73b\uc774 \ub41c\ub2e4. \uadf8\ub9ac\uace0 \uc5ec\ub7ec\uac1c\uc758 IP\ub97c \ub123\uc744\ub824\uba74 | \ub85c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56],"tags":[],"class_list":["post-1952","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1952"}],"version-history":[{"count":1,"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1952\/revisions"}],"predecessor-version":[{"id":1953,"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1952\/revisions\/1953"}],"wp:attachment":[{"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hyunsu.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}