{"id":40548,"date":"2023-03-16T15:22:13","date_gmt":"2024-01-12T10:18:25","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https\/"},"modified":"2024-04-29T19:09:11","modified_gmt":"2024-04-29T11:09:11","slug":"elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https\/","title":{"rendered":"Elasticsearch\u96c6\u7fa4\u9a8c\u8bc1(4): Elasticsearch 8.x\u7684\u96c6\u7fa4\u5316(\u652f\u6301HTTPS)"},"content":{"rendered":"<h5>[Elasticsearch\u9a8c\u8bc1\u7cfb\u5217\uff1a\u96c6\u7fa4\u5316Elasticsearch 8.x\uff08\u4e0d\u652f\u6301HTTPS\uff09]<\/h5>\n<h2>\u9996\u5148<\/h2>\n<p>\u4e0a\u6b21\u6211\u642d\u5efa\u4e86\u4e00\u4e2a\u4e0d\u652f\u6301HTTPS\u76843\u8282\u70b9Elasticsearch\u96c6\u7fa4\u3002<br \/>\n\u8fd9\u6b21\u6211\u5c06\u4ece\u5934\u5f00\u59cb\u642d\u5efa\u4e00\u4e2a\u652f\u6301HTTPS\u76843\u8282\u70b9Elasticsearch\u96c6\u7fa4\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">node1: AlmaLinux8-1<\/ul>\n<\/li>\n<\/ul>\n<p>node2: AlmaLinux8-2<\/p>\n<p>node3: AlmaLinux8-3<\/p>\n<h2>\u5728node1\u4e0a\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff08\u7ba1\u7406\u5458\u6743\u9650\uff09<\/h2>\n<h3>\u9632\u706b\u5899\u8bbe\u7f6e<\/h3>\n<ul class=\"post-ul\">\u30ce\u30fc\u30c9\u9593\u901a\u4fe1\u3092\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u3001\u30dd\u30fc\u30c89200\u30019300\u3078\u306e\u30a2\u30af\u30bb\u30b9\u8a31\u53ef<\/ul>\n<pre class=\"post-pre\"><code><span class=\"c\"># firewall-cmd --add-port={9200,9300}\/tcp --zone=public --permanent<\/span>\r\n<span class=\"c\"># firewall-cmd --reload<\/span>\r\n<span class=\"c\"># firewall-cmd --list-port<\/span>\r\n9200\/tcp 9300\/tcp\r\n<\/code><\/pre>\n<h3>\u5728\/etc\/hosts\u6587\u4ef6\u4e2d\u6dfb\u52a03\u4e2a\u8282\u70b9\u7684IP\u5730\u5740\u3002<\/h3>\n<pre class=\"post-pre\"><code>172.21.192.11 node1\r\n172.21.192.12 node2\r\n172.21.192.13 node3\r\n<\/code><\/pre>\n<h3>\u5220\u9664Elasticsearch<\/h3>\n<p>\u4e3a\u4e86\u4ece\u96f6\u5f00\u59cb\u5b89\u88c5Elasticsearch\uff0c\u5148\u505c\u6b62\u7136\u540e\u5220\u9664Elasticsearch\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># systemctl stop elasticsearch<\/span>\r\n<span class=\"c\"># dnf remove elasticsearch --enablerepo=elasticsearch -y<\/span>\r\n<span class=\"c\"># rm -rf \/var\/lib\/elasticsearch<\/span>\r\n<span class=\"c\"># rm -rf \/etc\/elasticsearch<\/span>\r\n<span class=\"c\"># rm -rf \/usr\/share\/elasticsearch<\/span>\r\n<\/code><\/pre>\n<h3>\u5b89\u88c5Elasticsearch\u3002<\/h3>\n<ul class=\"post-ul\">Eslasticsearch\u30ea\u30dd\u30b8\u30c8\u30ea\u306eGPG key\u3092\u30a4\u30f3\u30dd\u30fc\u30c8<\/ul>\n<pre class=\"post-pre\"><code><span class=\"c\"># rpm --import https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch<\/span>\r\n<\/code><\/pre>\n<ul class=\"post-ul\">rpm repository\u3092\u767b\u9332<\/ul>\n<pre class=\"post-pre\"><code>[elasticsearch]\r\nname=Elasticsearch repository for 8.x packages\r\nbaseurl=https:\/\/artifacts.elastic.co\/packages\/8.x\/yum\r\ngpgcheck=1\r\ngpgkey=https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch\r\nenabled=0\r\nautorefresh=1\r\ntype=rpm-md\r\n<\/code><\/pre>\n<ul class=\"post-ul\">RPM\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/ul>\n<pre class=\"post-pre\"><code><span class=\"c\"># dnf check-update --enablerepo=elasticsearch<\/span>\r\n<span class=\"c\"># dnf install elasticsearch --enablerepo=elasticsearch -y<\/span>\r\n<\/code><\/pre>\n<h3>\u5c06Elasticsearch\u4f5c\u4e3a\u670d\u52a1\u6fc0\u6d3b<\/h3>\n<pre class=\"post-pre\"><code># systemctl enable elasticsearch\r\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/elasticsearch.service \u2192 \/usr\/lib\/systemd\/system\/elasticsearch.service.\r\n<\/code><\/pre>\n<h3>\u7f16\u8f91Elasticsearch\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/h3>\n<p>\u5728\/etc\/elasticsearch\/elasticsearch.yml\u4e2d\uff0c\u8bbe\u7f6e\u5e76\u4fdd\u5b58\u4e0b\u5217\u9879\u76ee\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30af\u30e9\u30b9\u30bf\u540d<\/ul>\n<\/li>\n<\/ul>\n<p>cluster.name: mycluster<\/p>\n<p>\u30af\u30e9\u30b9\u30bf\u53c2\u52a0\u30ce\u30fc\u30c9<\/p>\n<p>discovery.seed_hosts: [&#8220;node1&#8221;, &#8220;node2&#8221;, &#8220;node3&#8221;]<\/p>\n<p>Elasticsearch\u30b5\u30fc\u30d3\u30b9\u306b\u4ed6\u306e\u30ce\u30fc\u30c9\u304b\u3089\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306b<\/p>\n<p>network.host: 0.0.0.0<\/p>\n<p>index\u81ea\u52d5\u4f5c\u6210\u8a2d\u5b9a\u3092\u6700\u7d42\u884c\u306b\u8ffd\u52a0<\/p>\n<p>action.auto_create_index: .monitoring*,.watches,.triggered_watches,.watcher-history*,.ml*<\/p>\n<h3>\u542f\u52a8Elasticsearch\u5e76\u91cd\u7f6eelastic\u7528\u6237\u7684\u5bc6\u7801\u3002<\/h3>\n<ul class=\"post-ul\">Elasticsearch\u3092\u8d77\u52d5<\/ul>\n<pre class=\"post-pre\"><code><span class=\"c\"># systemctl start elasticsearch<\/span>\r\n<\/code><\/pre>\n<ul class=\"post-ul\">elastic\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30ea\u30bb\u30c3\u30c8<\/ul>\n<pre class=\"post-pre\"><code><span class=\"c\"># \/usr\/share\/elasticsearch\/bin\/elasticsearch-reset-password -u elastic -i<\/span>\r\nThis tool will reset the password of the <span class=\"o\">[<\/span>elastic] user.\r\nYou will be prompted to enter the password.\r\nPlease confirm that you would like to <span class=\"k\">continue<\/span> <span class=\"o\">[<\/span>y\/N]y\r\nEnter password <span class=\"k\">for<\/span> <span class=\"o\">[<\/span>elastic]:\r\nRe-enter password <span class=\"k\">for<\/span> <span class=\"o\">[<\/span>elastic]:\r\nPassword <span class=\"k\">for <\/span>the <span class=\"o\">[<\/span>elastic] user successfully reset.\r\n<\/code><\/pre>\n<ul class=\"post-ul\">Elasticsearch\u306bhttps\u30a2\u30af\u30bb\u30b9\u3057\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u78ba\u8a8d<\/ul>\n<pre class=\"post-pre\"><code><span class=\"c\"># curl -k -u elastic https:\/\/localhost:9200<\/span>\r\nEnter host password <span class=\"k\">for <\/span>user <span class=\"s1\">'elastic'<\/span>:\r\n<span class=\"o\">{<\/span>\r\n  <span class=\"s2\">\"name\"<\/span> : <span class=\"s2\">\"node1\"<\/span>,\r\n  <span class=\"s2\">\"cluster_name\"<\/span> : <span class=\"s2\">\"mycluster\"<\/span>,\r\n  <span class=\"s2\">\"cluster_uuid\"<\/span> : <span class=\"s2\">\"FyfnAcg5TI-OGB6VWfUysg\"<\/span>,\r\n  <span class=\"s2\">\"version\"<\/span> : <span class=\"o\">{<\/span>\r\n    <span class=\"s2\">\"number\"<\/span> : <span class=\"s2\">\"8.3.3\"<\/span>,\r\n    <span class=\"s2\">\"build_flavor\"<\/span> : <span class=\"s2\">\"default\"<\/span>,\r\n    <span class=\"s2\">\"build_type\"<\/span> : <span class=\"s2\">\"rpm\"<\/span>,\r\n    <span class=\"s2\">\"build_hash\"<\/span> : <span class=\"s2\">\"801fed82df74dbe537f89b71b098ccaff88d2c56\"<\/span>,\r\n    <span class=\"s2\">\"build_date\"<\/span> : <span class=\"s2\">\"2022-07-23T19:30:09.227964828Z\"<\/span>,\r\n    <span class=\"s2\">\"build_snapshot\"<\/span> : <span class=\"nb\">false<\/span>,\r\n    <span class=\"s2\">\"lucene_version\"<\/span> : <span class=\"s2\">\"9.2.0\"<\/span>,\r\n    <span class=\"s2\">\"minimum_wire_compatibility_version\"<\/span> : <span class=\"s2\">\"7.17.0\"<\/span>,\r\n    <span class=\"s2\">\"minimum_index_compatibility_version\"<\/span> : <span class=\"s2\">\"7.0.0\"<\/span>\r\n  <span class=\"o\">}<\/span>,\r\n  <span class=\"s2\">\"tagline\"<\/span> : <span class=\"s2\">\"You Know, for Search\"<\/span>\r\n<span class=\"o\">}<\/span>\r\n<\/code><\/pre>\n<h3>\u521b\u5efa\u4e00\u4e2a\u7528\u4e8e\u5c06\u5176\u4ed6\u8282\u70b9\u6ce8\u518c\u5230\u53ea\u5305\u542bnode1\u7684\u96c6\u7fa4\u7684\u4ee4\u724c\u3002<\/h3>\n<pre class=\"post-pre\"><code><span class=\"c\"># \/usr\/share\/elasticsearch\/bin\/elasticsearch-create-enrollment-token -s node<\/span>\r\neyJ2ZXI...<span class=\"o\">(<\/span>\u4e2d\u7565<span class=\"o\">)<\/span>...cifQ<span class=\"o\">==<\/span>\r\n<\/code><\/pre>\n<p>\u4fdd\u7559\u5df2\u751f\u6210\u7684\u6ce8\u518c\u4ee4\u724c\u3002<\/p>\n<h2>\u5728node2\u4e0a\uff0c\u8fdb\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff08\u7ba1\u7406\u5458\u6743\u9650\uff09\u3002<\/h2>\n<h3>\u9632\u706b\u5899\u8bbe\u7f6e ( )<\/h3>\n<ul class=\"post-ul\">\u30ce\u30fc\u30c9\u9593\u901a\u4fe1\u3092\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u3001\u30dd\u30fc\u30c89200\u30019300\u3078\u306e\u30a2\u30af\u30bb\u30b9\u8a31\u53ef<\/ul>\n<pre class=\"post-pre\"><code><span class=\"c\"># firewall-cmd --add-port={9200,9300}\/tcp --zone=public --permanent<\/span>\r\n<span class=\"c\"># firewall-cmd --reload<\/span>\r\n<span class=\"c\"># firewall-cmd --list-port<\/span>\r\n9200\/tcp 9300\/tcp\r\n<\/code><\/pre>\n<h3>\u5728\/etc\/hosts\u6587\u4ef6\u4e2d\u6dfb\u52a03\u4e2a\u8282\u70b9\u7684IP\u5730\u5740\u3002<\/h3>\n<pre class=\"post-pre\"><code>172.21.192.11 node1\r\n172.21.192.12 node2\r\n172.21.192.13 node3\r\n<\/code><\/pre>\n<h3>\u5220\u9664 Elasticsearch<\/h3>\n<p>\u4e3a\u4e86\u4ece\u5934\u5f00\u59cb\u5b89\u88c5Elasticsearch\uff0c\u9996\u5148\u505c\u6b62\u5e76\u5220\u9664\u5f53\u524d\u7684Elasticsearch\u3002<\/p>\n<p>\u203b \u5df2\u7ecf\u542f\u52a8\u7684\u8282\u70b9\u65e0\u6cd5\u5728\u96c6\u7fa4\u4e2d\u8fdb\u884c\u6ce8\u518c\u3002\u5728\u6ce8\u518c\u65f6\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\u3002<\/p>\n<pre class=\"post-pre\"><code>ERROR: Skipping security auto configuration because it appears that the node is not starting up for the first time. The node might already be part of a cluster and this auto setup utility is designed to configure Security for new clusters only.\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"c\"># systemctl stop elasticsearch<\/span>\r\n<span class=\"c\"># dnf remove elasticsearch --enablerepo=elasticsearch -y<\/span>\r\n<span class=\"c\"># rm -rf \/var\/lib\/elasticsearch<\/span>\r\n<span class=\"c\"># rm -rf \/etc\/elasticsearch<\/span>\r\n<span class=\"c\"># rm -rf \/usr\/share\/elasticsearch<\/span>\r\n<\/code><\/pre>\n<h3>\u5b89\u88c5Elasticsearch<\/h3>\n<ul class=\"post-ul\">Eslasticsearch\u30ea\u30dd\u30b8\u30c8\u30ea\u306eGPG key\u3092\u30a4\u30f3\u30dd\u30fc\u30c8<\/ul>\n<pre class=\"post-pre\"><code><span class=\"c\"># rpm --import https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch<\/span>\r\n<\/code><\/pre>\n<ul class=\"post-ul\">rpm repository\u3092\u767b\u9332<\/ul>\n<pre class=\"post-pre\"><code>[elasticsearch]\r\nname=Elasticsearch repository for 8.x packages\r\nbaseurl=https:\/\/artifacts.elastic.co\/packages\/8.x\/yum\r\ngpgcheck=1\r\ngpgkey=https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch\r\nenabled=0\r\nautorefresh=1\r\ntype=rpm-md\r\n<\/code><\/pre>\n<ul class=\"post-ul\">RPM\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/ul>\n<pre class=\"post-pre\"><code><span class=\"c\"># dnf check-update --enablerepo=elasticsearch<\/span>\r\n<span class=\"c\"># dnf install elasticsearch --enablerepo=elasticsearch -y<\/span>\r\n<\/code><\/pre>\n<h3>\u5c06Elasticsearch\u4f5c\u4e3a\u670d\u52a1\u542f\u7528<\/h3>\n<pre class=\"post-pre\"><code><span class=\"c\"># systemctl enable elasticsearch<\/span>\r\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/elasticsearch.service \u2192 \/usr\/lib\/systemd\/system\/elasticsearch.service.\r\n<\/code><\/pre>\n<h3>\u4f7f\u7528node1\u521b\u5efa\u7684\u6ce8\u518c\u4ee4\u724c\u5c06node2\u6ce8\u518c\u5230\u96c6\u7fa4\u4e2d\u3002<\/h3>\n<pre class=\"post-pre\"><code><span class=\"c\"># \/usr\/share\/elasticsearch\/bin\/elasticsearch-reconfigure-node --enrollment-token eyJ2ZXI...(\u4e2d\u7565)...cifQ==<\/span>\r\n\r\nThis node will be reconfigured to <span class=\"nb\">join <\/span>an existing cluster, using the enrollment token that you provided.\r\nThis operation will overwrite the existing configuration. Specifically:\r\n  - Security auto configuration will be removed from elasticsearch.yml\r\n  - The <span class=\"o\">[<\/span>certs] config directory will be removed\r\n  - Security auto configuration related secure settings will be removed from the elasticsearch.keystore\r\nDo you want to <span class=\"k\">continue <\/span>with the reconfiguration process <span class=\"o\">[<\/span>y\/N]y\r\n<\/code><\/pre>\n<h3>\u7f16\u8f91Elasticsearch\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/h3>\n<p>\u5c06\u4ee5\u4e0b\u9879\u76ee\u8bbe\u7f6e\u5e76\u4fdd\u5b58\u5230\/etc\/elasticsearch\/elasticsearch.yml\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30af\u30e9\u30b9\u30bf\u540d<\/ul>\n<\/li>\n<\/ul>\n<p>cluster.name: mycluster<\/p>\n<p>Elasticsearch\u30b5\u30fc\u30d3\u30b9\u306b\u4ed6\u306e\u30ce\u30fc\u30c9\u304b\u3089\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306b<\/p>\n<p>network.host: 0.0.0.0<\/p>\n<p>index\u81ea\u52d5\u4f5c\u6210\u8a2d\u5b9a\u3092\u6700\u7d42\u884c\u306b\u8ffd\u52a0<\/p>\n<p>action.auto_create_index: .monitoring*,.watches,.triggered_watches,.watcher-history*,.ml*<\/p>\n<h3>\u542f\u52a8Elasticsearch<\/h3>\n<pre class=\"post-pre\"><code># systemctl start elasticsearch\r\n<\/code><\/pre>\n<ul class=\"post-ul\">Elasticsearch\u3078https\u30a2\u30af\u30bb\u30b9\u3057\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u78ba\u8a8d<\/ul>\n<pre class=\"post-pre\"><code># curl -k -u elastic https:\/\/localhost:9200\r\nEnter host password for user 'elastic':\r\n{\r\n  \"name\" : \"node2\",\r\n  \"cluster_name\" : \"mycluster\",\r\n  \"cluster_uuid\" : \"FyfnAcg5TI-OGB6VWfUysg\",\r\n  \"version\" : {\r\n    \"number\" : \"8.3.3\",\r\n    \"build_flavor\" : \"default\",\r\n    \"build_type\" : \"rpm\",\r\n    \"build_hash\" : \"801fed82df74dbe537f89b71b098ccaff88d2c56\",\r\n    \"build_date\" : \"2022-07-23T19:30:09.227964828Z\",\r\n    \"build_snapshot\" : false,\r\n    \"lucene_version\" : \"9.2.0\",\r\n    \"minimum_wire_compatibility_version\" : \"7.17.0\",\r\n    \"minimum_index_compatibility_version\" : \"7.0.0\"\r\n  },\r\n  \"tagline\" : \"You Know, for Search\"\r\n}\r\n<\/code><\/pre>\n<h2>\u4ee5\u7ba1\u7406\u5458\u6743\u9650\u5728node3\u4e0a\u6267\u884c\u4e0enode2\u76f8\u540c\u7684\u6b65\u9aa4\u3002<\/h2>\n<p>\u628a\u4e0b\u5217\u5185\u5bb9\u7528\u6c49\u8bed\u8fdb\u884c\u672c\u5730\u5316\u6539\u5199\uff0c\u53ea\u9700\u63d0\u4f9b\u4e00\u79cd\u9009\u9879\uff1a<br \/>\n(\u7701\u7565)<\/p>\n<h2>\u5728\u4efb\u610f\u4e00\u4e2a\u8282\u70b9\u4e0a\uff0c\u68c0\u67e5\u96c6\u7fa4\u7684\u72b6\u6001\u3002<\/h2>\n<pre class=\"post-pre\"><code>\r\n<span class=\"c\"># curl -k -u elastic https:\/\/localhost:9200\/_cat\/nodes?v<\/span>\r\nEnter host password <span class=\"k\">for <\/span>user <span class=\"s1\">'elastic'<\/span>:\r\nip            heap.percent ram.percent cpu load_1m load_5m load_15m node.role   master name\r\n172.21.192.12           19          95   0    0.15    0.09     0.07 cdfhilmrstw -      node2\r\n172.21.192.13           40          95   1    0.37    0.19     0.07 cdfhilmrstw -      node3\r\n172.21.192.11           44          91   1    0.00    0.00     0.00 cdfhilmrstw <span class=\"k\">*<\/span>      node1\r\n<\/code><\/pre>\n<p>\u5728\u96c6\u7fa4\u4e2d\u5b58\u5728\u4e09\u4e2a\u8282\u70b9\uff0c\u5176\u4e2d\u8282\u70b91\u6210\u4e3a\u4e86\u4e3b\u8282\u70b9\u3002<\/p>\n<h2>\u6700\u540e<\/h2>\n<p>\u6211\u5df2\u7ecf\u6784\u5efa\u4e86\u4e00\u4e2a\u652f\u6301HTTPS\u76843\u8282\u70b9Elasticsearch\u96c6\u7fa4\u3002\u8bf7\u7ee7\u7eed\u5173\u6ce8\uff0c\u656c\u8bf7\u671f\u5f85\u3002<\/p>\n<h5>[\u4e0b\u4e00\u6b21] Elasticsearch\u96c6\u7fa4\u9a8c\u8bc1(5): Elasticsearch\u7cfb\u7edf\u914d\u7f6e\u7684\u57fa\u7840<\/h5>\n","protected":false},"excerpt":{"rendered":"<p>[Elasticsearch\u9a8c\u8bc1\u7cfb\u5217\uff1a\u96c6\u7fa4\u5316Elasticsearch 8.x\uff08\u4e0d\u652f\u6301HTTPS\uff09] \u9996\u5148 \u4e0a [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40548","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Elasticsearch\u96c6\u7fa4\u9a8c\u8bc1(4): Elasticsearch 8.x\u7684\u96c6\u7fa4\u5316(\u652f\u6301HTTPS) - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch\u96c6\u7fa4\u9a8c\u8bc14-elasticsearch-8-x\u7684\u96c6\u7fa4\u5316\u652f\u6301https\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Elasticsearch\u96c6\u7fa4\u9a8c\u8bc1(4): Elasticsearch 8.x\u7684\u96c6\u7fa4\u5316(\u652f\u6301HTTPS)\" \/>\n<meta property=\"og:description\" content=\"[Elasticsearch\u9a8c\u8bc1\u7cfb\u5217\uff1a\u96c6\u7fa4\u5316Elasticsearch 8.x\uff08\u4e0d\u652f\u6301HTTPS\uff09] \u9996\u5148 \u4e0a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch\u96c6\u7fa4\u9a8c\u8bc14-elasticsearch-8-x\u7684\u96c6\u7fa4\u5316\u652f\u6301https\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-12T10:18:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T11:09:11+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https\/\",\"name\":\"Elasticsearch\u96c6\u7fa4\u9a8c\u8bc1(4): Elasticsearch 8.x\u7684\u96c6\u7fa4\u5316(\u652f\u6301HTTPS) - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-01-12T10:18:25+00:00\",\"dateModified\":\"2024-04-29T11:09:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Elasticsearch\u96c6\u7fa4\u9a8c\u8bc1(4): Elasticsearch 8.x\u7684\u96c6\u7fa4\u5316(\u652f\u6301HTTPS)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Elasticsearch\u96c6\u7fa4\u9a8c\u8bc1(4): Elasticsearch 8.x\u7684\u96c6\u7fa4\u5316(\u652f\u6301HTTPS) - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch\u96c6\u7fa4\u9a8c\u8bc14-elasticsearch-8-x\u7684\u96c6\u7fa4\u5316\u652f\u6301https\/","og_locale":"zh_CN","og_type":"article","og_title":"Elasticsearch\u96c6\u7fa4\u9a8c\u8bc1(4): Elasticsearch 8.x\u7684\u96c6\u7fa4\u5316(\u652f\u6301HTTPS)","og_description":"[Elasticsearch\u9a8c\u8bc1\u7cfb\u5217\uff1a\u96c6\u7fa4\u5316Elasticsearch 8.x\uff08\u4e0d\u652f\u6301HTTPS\uff09] \u9996\u5148 \u4e0a [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch\u96c6\u7fa4\u9a8c\u8bc14-elasticsearch-8-x\u7684\u96c6\u7fa4\u5316\u652f\u6301https\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-01-12T10:18:25+00:00","article_modified_time":"2024-04-29T11:09:11+00:00","author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https\/","name":"Elasticsearch\u96c6\u7fa4\u9a8c\u8bc1(4): Elasticsearch 8.x\u7684\u96c6\u7fa4\u5316(\u652f\u6301HTTPS) - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-01-12T10:18:25+00:00","dateModified":"2024-04-29T11:09:11+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Elasticsearch\u96c6\u7fa4\u9a8c\u8bc1(4): Elasticsearch 8.x\u7684\u96c6\u7fa4\u5316(\u652f\u6301HTTPS)"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/elasticsearch%e9%9b%86%e7%be%a4%e9%aa%8c%e8%af%814-elasticsearch-8-x%e7%9a%84%e9%9b%86%e7%be%a4%e5%8c%96%e6%94%af%e6%8c%81https\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=40548"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40548\/revisions"}],"predecessor-version":[{"id":87101,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40548\/revisions\/87101"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=40548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=40548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=40548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}