ADD HOSTS 是 console 连接了 graphD 之后的 nebula-console command/Graph QUERY,不是 shell command,先用 console 连上 GraphD 然后再执行哈
比如你的 storaged 里配置的地址是 1.2.3.4 端口是 9779,你的一个 graphd 是在 192.168.1.8:9669 上
./nebula-console -addr 192.168.1.8 -port 9669 -u root -p nebula
# 然后执行
ADD HOSTS "1.2.3.4":9779