{"id":163,"date":"2018-11-04T13:24:01","date_gmt":"2018-11-04T10:24:01","guid":{"rendered":"https:\/\/artem.services\/?p=163"},"modified":"2018-11-04T21:29:52","modified_gmt":"2018-11-04T18:29:52","slug":"elk","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=163","title":{"rendered":"Elasticsearch &#8212; \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"size-full wp-image-223 aligncenter\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Elasticsearch-Logo.png\" alt=\"\" width=\"4796\" height=\"1277\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Elasticsearch-Logo.png 4796w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Elasticsearch-Logo-300x80.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Elasticsearch-Logo-768x204.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Elasticsearch-Logo-1024x273.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Elasticsearch-Logo-954x254.png 954w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Elasticsearch-Logo-1354x361.png 1354w\" sizes=\"(max-width: 4796px) 100vw, 4796px\" \/><\/p>\n<p>\u0412\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043e\u043f\u0438\u0441\u043d\u044b\u0435 \u043d\u0438\u0436\u0435, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f <strong>root<\/strong>, \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>sudo<\/strong><\/p>\n<p>\u041d\u0430 \u0441\u0430\u0439\u0442\u0435 <strong>Elasticsearch<\/strong> \u0443\u043a\u0430\u0437\u0430\u043d\u043e:<\/p>\n<pre>Elasticsearch requires Java 8 or later.<\/pre>\n<p>\u0422\u0443\u0442 <strong>3 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430<\/strong> \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0439:<br \/>\n<strong>1<\/strong> &#8212; \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 Java, \u0432\u044b \u0435\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0435 \u0441 \u043d\u0443\u043b\u044f;<br \/>\n<strong>2<\/strong> &#8212; \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u0442\u0430\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0435 \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0435 \u0441\u0432\u0435\u0436\u0443\u044e;<br \/>\n<strong>3<\/strong> &#8212; \u0432\u044b \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0435 \u0441\u0432\u0435\u0436\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044f, \u043d\u0435 \u0443\u0434\u0430\u043b\u044f\u044f \u0441\u0442\u0430\u0440\u0443\u044e, \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u0432 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e <strong>Java<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\njava -version\r\n<\/pre>\n<p>\u0415\u0441\u043b\u0438 <strong>Java<\/strong> \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430, \u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u0434\u0430\u0442\u044c \u043f\u043e\u0445\u043e\u0436\u0438\u0439 \u043e\u0442\u0432\u0435\u0442:<\/p>\n<pre>java version \"1.7.0_181\"\r\nOpenJDK Runtime Environment (amzn-2.6.14.8.80.amzn1-x86_64 u181-b00)\r\nOpenJDK 64-Bit Server VM (build 24.181-b00, mixed mode)<\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 <strong>Java<\/strong> \u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0441\u0442\u0430\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0438 \u0432\u044b \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u0435\u0435 \u0443\u0434\u0430\u043b\u044f\u0442\u044c, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u0435 \u0441\u0440\u0430\u0437\u0443 \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435.<\/p>\n<p><!--more--><\/p>\n<h3>\u0423\u0434\u0430\u043b\u0435\u043d\u0438\u0435 <strong>Java<\/strong> (\u0435\u0441\u043b\u0438 \u0432\u044b \u0432\u044b\u0431\u0440\u0430\u043b\u0438 \u043f\u0443\u0442\u044c \u0441 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0430\u0440\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438).<\/h3>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nrpm -qa | grep openjdk\r\n<\/pre>\n<p>\u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0441\u0442\u0430\u0440\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nyum autoremove java-1.7.0-openjdk.x86_64\r\n<\/pre>\n<p>\u0418\u043b\u0438 \u0436\u0435 \u0442\u0430\u043a:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nyum autoremove $(rpm -qa | grep openjdk)\r\n<\/pre>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Java.<\/h3>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0431\u043e\u043b\u0435\u0435 \u0441\u0432\u0435\u0436\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nyum search openjdk\r\n<\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nyum install -y java-1.8.0-openjdk.x86_64\r\n<\/pre>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u0430 \u0435\u0449\u0435 \u0441\u0432\u0435\u0436\u0435\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u0447\u0435\u043c \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u0445, \u0442\u043e \u0441\u043a\u0430\u0447\u0430\u0439\u0442\u0435 RPM \u0444\u0430\u0439\u043b \u0441 \u0441\u0430\u0439\u0442\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435.<\/p>\n<p><strong>\u0417\u0430\u043c\u0435\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 Java \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e (\u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u044b\u043b\u0430 \u0441\u0442\u0430\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f Java \u0438 \u0432\u044b \u0435\u0435 \u043d\u0435 \u0443\u0434\u0430\u043b\u0438\u043b\u0438).<\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nalternatives --config java\r\n<\/pre>\n<p>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0443 \u043d\u0443\u0436\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c <strong>Enter<\/strong>.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 <strong>Elasticsearch<\/strong>.<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 <strong>Elasticsearch<\/strong>. \u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f, \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0431\u044b\u043b\u0430<strong> 6.\u0425<\/strong><\/p>\n<p>\u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u043a\u043b\u044e\u0447 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nrpm --import https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch\r\n<\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncat &gt; \/etc\/yum.repos.d\/elasticsearch.repo &lt;&lt; EOF\r\n[elasticsearch-6.x]\r\nname=Elasticsearch repository for 6.x packages\r\nbaseurl=https:\/\/artifacts.elastic.co\/packages\/6.x\/yum\r\ngpgcheck=1\r\ngpgkey=https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch\r\nenabled=1\r\nautorefresh=1\r\ntype=rpm-md\r\nEOF\r\n<\/pre>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nyum repolist\r\n<\/pre>\n<p>\u041d\u0443 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nyum install -y elasticsearch\r\n<\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a:<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 <strong>CentOS 7<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsystemctl enable elasticsearch\r\n<\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0434\u0435\u043b\u0430\u043b\u0438 \u044d\u0442\u043e \u043d\u0430 <strong>AWS<\/strong>, \u043d\u0430 \u0430\u043c\u0430\u0437\u043e\u043d\u043e\u0432\u0441\u043a\u043e\u043c \u043e\u0431\u0440\u0430\u0437\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 <strong>CentOS<\/strong>&#39;\u0430 \u0431\u0435\u0437 <strong>systemd<\/strong> (<strong>Amazon Linux AMI 2018.03<\/strong>), \u0442\u043e \u043f\u043e \u0441\u0442\u0430\u0440\u0438\u043d\u043a\u0435 \u0447\u0435\u0440\u0435\u0437 <strong>chkconfig<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nchkconfig elasticsearch on\r\n<\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nchkconfig | grep elasticsearch\r\nelasticsearch 0:off 1:off 2:on 3:on 4:on 5:on 6:off\r\n<\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c <strong>Elasticsearch<\/strong>:<\/p>\n<p><strong>systemd<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsystemctl start elasticsearch\r\n<\/pre>\n<p><strong>SysV<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nservice elasticsearch start\r\n<\/pre>\n<p>\u042f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b <strong>Elasticsearch<\/strong> \u043d\u0430 <strong>AWS<\/strong>, \u0438 \u0432\u0437\u044f\u043b \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0430\u043d\u0441<strong> t2.micro<\/strong>, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e <strong>1 Gb RAM<\/strong>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 <strong>Elasticsearch<\/strong>, \u044f \u0443\u0432\u0438\u0434\u0435\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre>Starting elasticsearch: OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c5330000, 986513408, 0) failed; error='Cannot allocate memory' (errno=12)\r\n#\r\n# There is insufficient memory for the Java Runtime Environment to continue.\r\n# Native memory allocation (mmap) failed to map 986513408 bytes for committing reserved memory.\r\n# An error report file with more information is saved as:\r\n# \/var\/log\/elasticsearch\/hs_err_pid23835.log<\/pre>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a <strong>Java Elasticsearch<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nvim \/etc\/elasticsearch\/jvm.options\r\n<\/pre>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0443\u0436\u043d\u043e\u0435 \u043d\u0430\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435:<\/p>\n<pre>################################################################\r\n## IMPORTANT: JVM heap size\r\n################################################################\r\n##\r\n## You should always set the min and max JVM heap\r\n## size to the same value. For example, to set\r\n## the heap to 4 GB, set:\r\n##\r\n## -Xms4g\r\n## -Xmx4g\r\n##\r\n## See https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/heap-size.html\r\n## for more information\r\n##\r\n################################################################\r\n\r\n# Xms represents the initial size of total heap space\r\n# Xmx represents the maximum size of total heap space<\/pre>\n<p>\u0418 \u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0436\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0443 \u043d\u0430\u0441:<\/p>\n<pre>-Xms1g\r\n-Xmx1g<\/pre>\n<p>\u041c\u0435\u043d\u044f\u0435\u043c \u043d\u0430:<\/p>\n<pre>-Xms512m\r\n-Xmx512m<\/pre>\n<p>\u0418 \u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0449\u0435 \u0440\u0430\u0437.<\/p>\n<p><strong>512<\/strong> \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442 \u0434\u043b\u044f <strong>Elasticserach<\/strong> \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u043e, \u043d\u043e \u0434\u043b\u044f \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0445\u0432\u0430\u0442\u0438\u0442.<\/p>\n<p>\u0422\u0430\u043a \u0436\u0435 <strong>Elasticsearch<\/strong> \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f, \u0435\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043d\u0438\u0437\u043a\u043e\u0435, \u0438 \u0442\u0430\u043a \u0436\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0444\u0430\u0439\u043b\u044b, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e\u0433\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nulimit -u 4096\r\nulimit -n 65536\r\n<\/pre>\n<p>\u0422\u0435\u043a\u0443\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nulimit -a\r\n<\/pre>\n<p>\u0414\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0430 \u043d\u0430 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u0443\u044e \u043e\u0441\u043d\u043e\u0432\u0443 \u043d\u0443\u0436\u043d\u043e \u0432\u043d\u043e\u0441\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 &quot;<strong>\/etc\/security\/limits.conf<\/strong>&quot;<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0435 \u043d\u0430 <strong>Ubuntu<\/strong>, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043e\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b, \u0442\u043e\u0433\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b &quot;<strong>\/etc\/pam.d\/su<\/strong>&quot; \u0438 \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<pre># session required pam_limits.so<\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u043b\u043e\u0433\u0438\u043d\u0438\u0442\u0441\u044f.<\/p>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <strong>Elasticsearch<\/strong> \u0441\u043b\u0443\u0448\u0430\u0435\u0442 <strong>localhost<\/strong> \u043d\u0430 \u043f\u043e\u0440\u0442\u0443 <strong>9200 TCP<\/strong>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncurl localhost:9200\r\n<\/pre>\n<p>\u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n{\r\n  &quot;name&quot; : &quot;hg20ils&quot;,\r\n  &quot;cluster_name&quot; : &quot;elasticsearch&quot;,\r\n  &quot;cluster_uuid&quot; : &quot;ErZwY7nKQG6rEoF-stKsiA&quot;,\r\n  &quot;version&quot; : {\r\n    &quot;number&quot; : &quot;6.4.2&quot;,\r\n    &quot;build_flavor&quot; : &quot;default&quot;,\r\n    &quot;build_type&quot; : &quot;rpm&quot;,\r\n    &quot;build_hash&quot; : &quot;04711c2&quot;,\r\n    &quot;build_date&quot; : &quot;2018-09-26T13:34:09.098244Z&quot;,\r\n    &quot;build_snapshot&quot; : false,\r\n    &quot;lucene_version&quot; : &quot;7.4.0&quot;,\r\n    &quot;minimum_wire_compatibility_version&quot; : &quot;5.6.0&quot;,\r\n    &quot;minimum_index_compatibility_version&quot; : &quot;5.0.0&quot;\r\n  },\r\n  &quot;tagline&quot; : &quot;You Know, for Search&quot;\r\n}\r\n<\/pre>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0441\u0442\u0430\u0442\u044c\u044f \u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 <strong>Elasticsearch<\/strong> \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, <a href=\"https:\/\/artem.services\/?p=167\" target=\"_blank\" rel=\"noopener\">\u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439<\/a> \u043c\u044b 2 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430 \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c <strong>Elasticsearch<\/strong> \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043c \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043e\u043f\u0438\u0441\u043d\u044b\u0435 \u043d\u0438\u0436\u0435, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root, \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c sudo \u041d\u0430 \u0441\u0430\u0439\u0442\u0435 Elasticsearch \u0443\u043a\u0430\u0437\u0430\u043d\u043e: Elasticsearch requires Java 8 or later. \u0422\u0443\u0442 3 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u0439: 1 &#8212; \u0443 \u0432\u0430\u0441 \u043d\u0435\u0442 Java, \u0432\u044b \u0435\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0435 \u0441 \u043d\u0443\u043b\u044f; 2 &#8212; \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u0442\u0430\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0435 \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0435 \u0441\u0432\u0435\u0436\u0443\u044e; 3 &#8212; \u0432\u044b \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0435 &hellip; <a href=\"https:\/\/artem.services\/?p=163\" class=\"more-link\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u044c<span class=\"screen-reader-text\"> &quot;Elasticsearch &#8212; \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430&quot;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[28],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/163"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=163"}],"version-history":[{"count":11,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/163\/revisions"}],"predecessor-version":[{"id":224,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/163\/revisions\/224"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}