{"id":724,"date":"2021-04-09T15:29:55","date_gmt":"2021-04-09T07:29:55","guid":{"rendered":"https:\/\/www.yinyubo.cn\/?p=724"},"modified":"2022-05-17T09:29:09","modified_gmt":"2022-05-17T01:29:09","slug":"apacheiotdb","status":"publish","type":"post","link":"https:\/\/www.yinyubo.com\/?p=724","title":{"rendered":"Docker\u8fd0\u884cApacheIoTDB"},"content":{"rendered":"<h1 id=\"id-\u4f7f\u7528docker\u90e8\u7f72Apacheiotdb-Iotdb\u670d\u52a1\u7aef\u7684\u90e8\u7f72\u65b9\u5f0f\" class=\"auto-cursor-target\">ApacheIoTDB-Server\u7684\u90e8\u7f72\u65b9\u5f0f<\/h1>\n<p>ApacheIoTDB\u63d0\u4f9b\u4e86\u4e09\u79cd\u90e8\u7f72\u65b9\u5f0f\uff1a\u6e90\u7801\u90e8\u7f72\uff0c\u4e8c\u8fdb\u5236\u7a0b\u5e8f\u90e8\u7f72\uff0cDocker\u90e8\u7f72<br \/>\n\u56e0\u4e3a\u6211\u7684\u7535\u8111\u662fUbuntu\u7684\uff0c\u4e0d\u517c\u5bb9ApacheIoTDB\uff0c\u6240\u4ee5\u6211\u91c7\u7528\u4e86docker\u65b9\u5f0f\u8fdb\u884c\u90e8\u7f72(docker\u662f\u7528debian\u7684java\u955c\u50cf)<\/p>\n<hr \/>\n<h1 id=\"id-\u4f7f\u7528docker\u90e8\u7f72Apacheiotdb-\u90e8\u7f72\u8fc7\u7a0b\">\u90e8\u7f72\u670d\u52a1\u7aef<\/h1>\n<p>1.\u5728ubuntu\u673a\u5668\u4e0a\u521b\u5efa\u76ee\u5f55~\/iotdb-0.11.2<br \/>\n2.\u590d\u5236\u5b98\u65b9\u7f51\u7ad9\u7684dockerfile\u5230\u672c\u5730\uff1a<a href=\"https:\/\/github.com\/apache\/iotdb\/blob\/master\/docker\/src\/main\/Dockerfile-0.11.2\">https:\/\/github.com\/apache\/iotdb\/blob\/master\/docker\/src\/main\/Dockerfile-0.11.2<\/a><br \/>\n3.\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5236\u4f5c\u955c\u50cf\uff0c\u786e\u8ba4docker \u955c\u50cf\u751f\u6210\u6210\u529f<\/p>\n<pre class=\"lang:sh decode:true  EnlighterJSRAW\" data-enlighter-language=\"golang\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">docker build -t iotdb:0.11.2 .\n<\/code><\/pre>\n<p>4.\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u8fd0\u884ciotdb\uff0c\u5e76\u4e14\u628a\u6570\u636e\u76ee\u5f55\u548c\u65e5\u5fd7\u76ee\u5f55\u6302\u8f7d\u5230~\/iotdb-0.11.2\u4e0b<\/p>\n<pre class=\"lang:python decode:true EnlighterJSRAW\" data-enlighter-language=\"golang\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">docker run --name iotdb -p 6667:6667 -v \/home\/boring\/iotdb-0.11.2\/data:\/iotdb\/data -v \/home\/boring\/iotdb-0.11.2\/logs:\/iotdb\/logs -d iotdb:0.11.2 \/iotdb\/bin\/start-server.sh<\/code><\/pre>\n<div class=\"syntaxhighlighter sh-confluence nogutter  java\">\n<hr \/>\n<\/div>\n<div>\n<h1 id=\"id-\u4f7f\u7528docker\u90e8\u7f72Apacheiotdb-\u5728\u5bb9\u5668\u4e2d\u7528\u547d\u4ee4\u884c\u5de5\u5177\u6d4b\u8bd5\">\u5728\u5bb9\u5668\u4e2d\u7528\u547d\u4ee4\u884c\u5de5\u5177\u8fdb\u884c\u6d4b\u8bd5<\/h1>\n<p>1.\u8fdb\u5165\u5bb9\u5668<\/p>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<div>\n<div id=\"highlighter_340714\" class=\"syntaxhighlighter sh-confluence nogutter  java\">\n<pre class=\"lang:sh decode:true \"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">docker exec -it iotdb bash\n<\/code><\/pre>\n<p>2.\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u8fde\u63a5<\/p>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<div>\n<div id=\"highlighter_524167\" class=\"syntaxhighlighter sh-confluence nogutter  java\">\n<pre class=\"lang:python decode:true \"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">\/iotdb\/sbin\/start-cli.sh -h 127.0.0.1 -p 6667 -u root -pw root\n<\/code><\/pre>\n<p>3.\u786e\u8ba4\u754c\u9762\u51fa\u73b0\u5982\u4e0b\u8fd4\u56de<\/p>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\">\n<div class=\"codeContent panelContent pdl\">\n<div>\n<div id=\"highlighter_970608\" class=\"syntaxhighlighter sh-confluence nogutter  java\">\n<pre class=\"lang:python decode:true \"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"golang\">---------------------\nStarting IoTDB Cli\n---------------------\n _____       _________  ______   ______\n|_   _|     |  _   _  ||_   _ `.|_   _ \\\n  | |   .--.|_\/ | | \\_|  | | `. \\ | |_) |\n  | | \/ .'`\\ \\  | |      | |  | | |  __'.\n _| |_| \\__. | _| |_    _| |_.' \/_| |__) |\n|_____|'.__.' |_____|  |______.'|_______\/  version 0.11.2\nIoTDB&gt; login successfully\nIoTDB&gt;<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>ApacheIoTDB-Server\u7684\u90e8\u7f72\u65b9\u5f0f ApacheIoTDB\u63d0\u4f9b\u4e86\u4e09\u79cd\u90e8\u7f72\u65b9\u5f0f\uff1a\u6e90\u7801\u90e8\u7f72\uff0c\u4e8c\u8fdb\u5236\u7a0b\u5e8f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-724","post","type-post","status-publish","format-standard","hentry","category-k8s"],"_links":{"self":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=724"}],"version-history":[{"count":1,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/724\/revisions"}],"predecessor-version":[{"id":852,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=\/wp\/v2\/posts\/724\/revisions\/852"}],"wp:attachment":[{"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yinyubo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}