diff --git a/docs-2.0-zh/4.deployment-and-installation/2.compile-and-install-nebula-graph/8.deploy-nebula-graph-with-lite.md b/docs-2.0-zh/4.deployment-and-installation/2.compile-and-install-nebula-graph/8.deploy-nebula-graph-with-lite.md new file mode 100644 index 00000000000..20d7932833b --- /dev/null +++ b/docs-2.0-zh/4.deployment-and-installation/2.compile-and-install-nebula-graph/8.deploy-nebula-graph-with-lite.md @@ -0,0 +1,49 @@ +# 使用 NebulaGraph Lite 部署 {{nebula.name}} + +使用 NebulaGraph Lite 可以快速安装部署 {{nebula.name}},仅需五分钟即可开始体验 {{nebula.name}} 图数据库。 + +## 优势 + +- 通过 Python 包管理工具快速安装 NebulaGraph Lite。 +- 支持非 Root 权限部署 {{nebula.name}}。 +- 支持在容器或任何基于 Jupyter Notebook 的平台上部署 {{nebula.name}}。 + +## 操作步骤 + +1. 执行如下命令安装 NebulaGraph Lite。 + + ```bash + sudo apt install python3-pip + ``` + +2. 启动 NebulaGraph Lite。 + + - 从 Jupyter Notebook 启动 + + ```bash + from nebulagraph_lite import nebulagraph_let as ng_let + n = ng_let() + n.start() + ``` + + - 从命令行启动 + + ```bash + nebulagraph start + ``` + +返回如下结果表示启动并导入测试数据成功。 + +```bash +Info: loading basketballplayer dataset... + + _ _ _ _ ____ _ + | \ | | ___| |__ _ _| | __ _ / ___|_ __ __ _ _ __ | |__ + | \| |/ _ | '_ \| | | | |/ _` | | _| '__/ _` | '_ \| '_ \ + | |\ | __| |_) | |_| | | (_| | |_| | | | (_| | |_) | | | | + |_| \_|\___|_.__/ \__,_|_|\__,_|\____|_| \__,_| .__/|_| |_| + |_| + lite version + +[ OK ] nebulagraph_lite started successfully! +```