From 6f94b2b444c58d80c54369c017406784fffde0ae Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Thu, 11 Apr 2024 11:33:44 +0800 Subject: [PATCH] add NebulaGraph Lite https://github.com/vesoft-inc/nebula-docs/issues/2526 --- .../8.deploy-nebula-graph-with-lite.md | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 docs-2.0-zh/4.deployment-and-installation/2.compile-and-install-nebula-graph/8.deploy-nebula-graph-with-lite.md 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! +```