{"id":765,"date":"2025-08-30T11:00:54","date_gmt":"2025-08-30T03:00:54","guid":{"rendered":"https:\/\/china-abc.leohe.net.cn\/?p=765"},"modified":"2025-08-30T11:00:54","modified_gmt":"2025-08-30T03:00:54","slug":"docker-elasticsearch-%e5%8d%95%e8%8a%82%e7%82%b9","status":"publish","type":"post","link":"https:\/\/china-abc.leohe.net.cn\/?p=765","title":{"rendered":"docker elasticsearch \u5355\u8282\u70b9"},"content":{"rendered":"<div>\n<div>docker create -e \"discovery.type=single-node\" -p 9200:9200 -p 9300:9300 \\<\/div>\n<div>-e ES_JAVA_OPTS=\"-Xms1g -Xmx1g\" \\<\/div>\n<div>--name elasticsearch1 docker.elastic.co\/elasticsearch\/elasticsearch:7.10.0<\/div>\n<div>docker start elasticsearch1<\/div>\n<div>docker run -d -p 9200:9200 \\<\/div>\n<div>-e\"discovery.type=single-node\"\\<\/div>\n<div>-e\"ES_JAVA_OPTS=-Xms512m -Xmx512m\"\\<\/div>\n<div>--namees\\<\/div>\n<div>docker.elastic.co\/elasticsearch\/elasticsearch:7.10.0<\/div>\n<div>docker run -d -p 3306:3306 \\<\/div>\n<div>-e MYSQL_ROOT_PASSWORD=123qweasd \\<\/div>\n<div>--name mysql \\<\/div>\n<div>mysql:latest<\/div>\n<div>CREATE USER air IDENTIFIED BY 'air';<\/div>\n<div>GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO air;<\/div>\n<div>Changed password for user apm_system<\/div>\n<div>PASSWORD apm_system = W06taInsQFYNtRPI4YAy<\/div>\n<div>Changed password for user kibana_system<\/div>\n<div>PASSWORD kibana_system = IrKRDMAm0M7mEA4s3vfI<\/div>\n<div>Changed password for user kibana<\/div>\n<div>PASSWORD kibana = IrKRDMAm0M7mEA4s3vfI<\/div>\n<div>Changed password for user logstash_system<\/div>\n<div>PASSWORD logstash_system = LVSrpWFE6yV49GOXdyry<\/div>\n<div>Changed password for user beats_system<\/div>\n<div>PASSWORD beats_system = y7iLxivZigP5SdH4iNYD<\/div>\n<div>Changed password for user remote_monitoring_user<\/div>\n<div>PASSWORD remote_monitoring_user = HxJnzGFUWxiChGkPJPN4<\/div>\n<div>Changed password for user elastic<\/div>\n<div>PASSWORD elastic = 0GuHPQFCLR5CRazkNZDJ<\/div>\n<div>curl -u elastic:0GuHPQFCLR5CRazkNZDJ \"https:\/\/localhost:9200\"<\/div>\n<div>curl -u elastic:0GuHPQFCLR5CRazkNZDJ \"https:\/\/localhost:9200\" -k<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>docker create -e \"discovery.type=single-node\" -p 9200:9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[13,22],"tags":[],"_links":{"self":[{"href":"https:\/\/china-abc.leohe.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/765"}],"collection":[{"href":"https:\/\/china-abc.leohe.net.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/china-abc.leohe.net.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/china-abc.leohe.net.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/china-abc.leohe.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=765"}],"version-history":[{"count":1,"href":"https:\/\/china-abc.leohe.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/765\/revisions"}],"predecessor-version":[{"id":766,"href":"https:\/\/china-abc.leohe.net.cn\/index.php?rest_route=\/wp\/v2\/posts\/765\/revisions\/766"}],"wp:attachment":[{"href":"https:\/\/china-abc.leohe.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/china-abc.leohe.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/china-abc.leohe.net.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}