blob: 31658b61a454a3d85cc807330943dd9984522c79 [file] [log] [blame]
(window.webpackJsonp=window.webpackJsonp||[]).push([[183],{749:function(e,t,o){"use strict";o.r(t);var a=o(68),r=Object(a.a)({},(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[o("h1",{attrs:{id:"download"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#download"}},[e._v("#")]),e._v(" Download")]),e._v(" "),o("p",[e._v("IoTDB provides you three installation methods, you can refer to the following suggestions, choose one of them:")]),e._v(" "),o("ul",[o("li",[e._v("Installation from source code. If you need to modify the code yourself, you can use this method.")]),e._v(" "),o("li",[e._v("Installation from binary files. Download the binary files from the official website. This is the recommended method, in which you will get a binary released package which is out-of-the-box.")]),e._v(" "),o("li",[e._v("Using Docker:The path to the dockerfile is https://github.com/apache/iotdb/blob/master/docker/Dockerfile")])]),e._v(" "),o("h2",{attrs:{id:"prerequisites"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#prerequisites"}},[e._v("#")]),e._v(" Prerequisites")]),e._v(" "),o("p",[e._v("To use IoTDB, you need to have:")]),e._v(" "),o("ol",[o("li",[e._v("Java >= 1.8 (Please make sure the environment path has been set)")]),e._v(" "),o("li",[e._v("Maven >= 3.1 (Optional)")]),e._v(" "),o("li",[e._v('Set the max open files num as 65535 to avoid "too many open files" problem.')])]),e._v(" "),o("blockquote",[o("p",[e._v("Note: If you don't have maven installed, you should replace 'mvn' in the following commands with 'mvnw.sh' or 'mvnw.cmd'.")]),e._v(" "),o("h3",{attrs:{id:"installation-from-binary-files"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#installation-from-binary-files"}},[e._v("#")]),e._v(" Installation from binary files")])]),e._v(" "),o("p",[e._v("You can download the binary file from:\n"),o("RouterLink",{attrs:{to:"/Download/"}},[e._v("Here")])],1),e._v(" "),o("h2",{attrs:{id:"installation-from-source-code"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#installation-from-source-code"}},[e._v("#")]),e._v(" Installation from source code")]),e._v(" "),o("p",[e._v("You can get the released source code from https://iotdb.apache.org/Download/, or from the git repository https://github.com/apache/iotdb/tree/master\nYou can download the source code from:")]),e._v(" "),o("div",{staticClass:"language- line-numbers-mode"},[o("pre",{pre:!0,attrs:{class:"language-text"}},[o("code",[e._v("git clone https://github.com/apache/iotdb.git\n")])]),e._v(" "),o("div",{staticClass:"line-numbers-wrapper"},[o("span",{staticClass:"line-number"},[e._v("1")]),o("br")])]),o("p",[e._v("Under the root path of iotdb:")]),e._v(" "),o("div",{staticClass:"language- line-numbers-mode"},[o("pre",{pre:!0,attrs:{class:"language-text"}},[o("code",[e._v("> mvn clean package -DskipTests\n")])]),e._v(" "),o("div",{staticClass:"line-numbers-wrapper"},[o("span",{staticClass:"line-number"},[e._v("1")]),o("br")])]),o("p",[e._v("Then the binary version (including both server and client) can be found at "),o("strong",[e._v("distribution/target/apache-iotdb-{project.version}-bin.zip")])]),e._v(" "),o("blockquote",[o("p",[e._v('NOTE: Directories "thrift/target/generated-sources/thrift" and "antlr/target/generated-sources/antlr4" need to be added to sources roots to avoid compilation errors in IDE.')])]),e._v(" "),o("p",[e._v("If you would like to build the IoTDB server, you can run the following command under the root path of iotdb:")]),e._v(" "),o("div",{staticClass:"language- line-numbers-mode"},[o("pre",{pre:!0,attrs:{class:"language-text"}},[o("code",[e._v("> mvn clean package -pl server -am -DskipTests\n")])]),e._v(" "),o("div",{staticClass:"line-numbers-wrapper"},[o("span",{staticClass:"line-number"},[e._v("1")]),o("br")])]),o("p",[e._v('After build, the IoTDB server will be at the folder "server/target/iotdb-server-{project.version}".')]),e._v(" "),o("h2",{attrs:{id:"installation-by-docker-dockerfile"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#installation-by-docker-dockerfile"}},[e._v("#")]),e._v(" Installation by Docker (Dockerfile)")]),e._v(" "),o("p",[e._v("You can build and run a IoTDB docker image by following the guide of "),o("RouterLink",{attrs:{to:"/UserGuide/V0.11.x/Server/Docker Image.html"}},[e._v("Deployment by Docker")])],1)])}),[],!1,null,null,null);t.default=r.exports}}]);