Skip to main content

One post tagged with "database"

View All Tags

· 2 min read

背景

搭建一个简单的实例

介绍

nebula 是一个图数据库

搭建 后端

使用docker swam 启动

## 拉代码
git clone [email protected]:vesoft-inc/nebula-docker-compose.git

## 切换目录
cd nebula-docker-compose
## 创建目录 logs data 目录
mkdir logs data
mkdir data/storage0 logs/storage0 data/meta0 logs/meta0 logs/graph

## 启动 ,stack 命名为nebula
docker compose up -d

## 查看启动情况
docker stack ps nebula

遇到问题:

No such image: vesoft/nebula 的错误 ,因为dns被墙了

ID             NAME                     IMAGE                            NODE      DESIRED STATE   CURRENT STATE              ERROR                              PORTS
92hscx92ugte nebula_graphd.1 vesoft/nebula-graphd:nightly dai Ready Preparing 4 seconds ago
730ke91w1lil \_ nebula_graphd.1 vesoft/nebula-graphd:nightly dai Shutdown Rejected 4 seconds ago "No such image: vesoft/nebula-…"

Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on 192.168.1.1:53: read udp 192.168.1.108:44332->192.168.1.1:53: read: connection refused

因为docker的问题:在这里找到相关内容

解决方案:

## 因为dns问题 ,加上8.8.8.8 即可
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

搭建前端

## 拉代码
git clone [email protected]:vesoft-inc/nebula-studio.git
## 切目录
cd nebula-studio/
## 安装依赖
npm install
## 前端启动

遇到问题

studio.go:22:2: github.com/facebook/[email protected]: Get "https://proxy.golang.org/github.com/facebook/fbthrift/@v/v0.31.1-0.20211129061412-801ed7f9f295.mod": dial tcp 142.250.204.145:443: i/o timeout
studio.go:24:2: github.com/facebook/[email protected]: Get "https://proxy.golang.org/github.com/facebook/fbthrift/@v/v0.31.1-0.20211129061412-801ed7f9f295.mod": dial tcp 142.250.204.145:443: i/o timeout

解决方案:

https://goproxy.io/zh/