nebula 实录笔记
文档:
https://docs.nebula-graph.com.cn/3.2.0/2.quick-start/2.install-nebula-graph/
(53条消息) 大数据运维 (五) docker搭建图数据库nebula适配国产化服务器_大数据指北的博客-CSDN博客_docker 国产化
安装:
1 wget https://oss-cdn.nebula-graph.com.cn/package/3.2.0/nebula-graph-3.2.0.el8.x86_64.rpm
2 sudo rpm -ivh --prefix=/root/nebula nebula-graph-3.2.0.el8.x86_64.rpm
链接数据库:
./nebula-console -addr 127.0.0.1 -port 9669 -u root -p *****
nebula-console
安装
$ sudo rpm -i nebula-graph-studio-3.4.1.x86_64.rpm --prefix=<path>
http://<ip address>:7001
卸载:
$ sudo rpm -e nebula-graph-studio-3.4.1.x86_64
启动
$ bash /usr/local/nebula-graph-studio/scripts/rpm/start.sh
停止
$ bash /usr/local/nebula-graph-studio/scripts/rpm/stop.sh
ADD HOSTS 127.0.0.1:9779
ubuntu开启/关闭防火墙
1、Alt+T打开终端,输入sudo ufw status
回车,查看防火墙状态,inactive是关闭,active是开启。
2、使用sudo ufw enable
开启防火墙。
3、使用sudo ufw disable
关闭防火墙。
开放端口:
sudo ufw allow 22
linux 查看内核版本
cat /proc/version
uname -a
uname -r
解压 .tar.gz
tar -xzvf
索引:
CREATE TAG INDEX IF NOT EXISTS node_package_version on Package(version(30));
CREATE TAG INDEX IF NOT EXISTS node_package_id on Package(packageID(60));
CREATE TAG INDEX IF NOT EXISTS node_package_name on Package(package_name(50));
CREATE TAG INDEX IF NOT EXISTS node_package_is_perelease on Package(isPrerelease(10));
CREATE EDGE INDEX IF NOT EXISTS relationship_framework on Target_To(targetFramework(50));
导入数据:
./nebula-importer --config ./nufix_dataset.yaml
待修改语句:
prlimit --nofile=1000000 --pid=$$
添加属性:
ALTER TAG Package ADD (cache_net50 string, cache_net60 string, cache_NETFramework48 string, cache_NETFramework472 string, cache_NETFramework471 string, cache_NETFramework47 string, cache_NETFramework462 string, cache_NETFramework461 string, cache_NETFramework46 string, cache_NETFramework452 string, cache_NETFramework451 string, cache_NETFramework45 string, cache_NETFramework403 string, cache_NETFramework40 string, cache_NETFramework35 string, cache_NETFramework20 string, cache_NETFramework11 string, cache_NETStandard21 string, cache_NETStandard20 string, cache_NETStandard16 string, cache_NETStandard15 string, cache_NETStandard14 string, cache_NETStandard13 string, cache_NETStandard12 string, cache_NETStandard11 string, cache_NETStandard10 string, cache_NETCoreApp31 string, cache_NETCoreApp30 string, cache_NETCoreApp22 string, cache_NETCoreApp21 string, cache_NETCoreApp20 string, cache_NETCoreApp11 string, cache_NETCoreApp10 string, cache_XamarinAndroid70 string, cache_XamarinAndroid71 string, cache_XamarinAndroid72 string, cache_XamarinAndroid73 string, cache_XamarinAndroid74 string, cache_XamarinAndroid80 string, cache_XamarinAndroid81 string, cache_XamarinAndroid82 string, cache_XamarinAndroid83 string, cache_XamarinAndroid90 string, cache_XamarinAndroid91 string, cache_XamarinAndroid92 string, cache_XamarinAndroid93 string, cache_XamarinAndroid94 string, cache_XamarinAndroid100 string, cache_XamarinAndroid101 string, cache_XamarinAndroid102 string, cache_XamarinAndroid103 string, cache_XamarinAndroid110 string, cache_XamarinAndroid111 string, cache_XamarinAndroid112 string, cache_XamarinAndroid113 string, cache_XamarinAndroid120 string, cache_XamarinAndroid121 string, cache_XamarinAndroid122 string, cache_MonoAndroid46 string, cache_MonoAndroid54 string, cache_MonoAndroid64 string, cache_UAP80 string, cache_UAP81 string, cache_UAP100 string, cache_UAP10016299 string, cache_UAP10019041 string);
清空属性:
ALTER TAG Package DROP(cache_net50 , cache_net60 , cache_NETFramework48 , cache_NETFramework472 , cache_NETFramework471 , cache_NETFramework47 , cache_NETFramework462 , cache_NETFramework461 , cache_NETFramework46 , cache_NETFramework452 , cache_NETFramework451 , cache_NETFramework45 , cache_NETFramework403 , cache_NETFramework40 , cache_NETFramework35 , cache_NETFramework20 , cache_NETFramework11 , cache_NETStandard21 , cache_NETStandard20 , cache_NETStandard16 , cache_NETStandard15 , cache_NETStandard14 , cache_NETStandard13 , cache_NETStandard12 , cache_NETStandard11 , cache_NETStandard10 , cache_NETCoreApp31 , cache_NETCoreApp30 , cache_NETCoreApp22 , cache_NETCoreApp21 , cache_NETCoreApp20 , cache_NETCoreApp11 , cache_NETCoreApp10 , cache_XamarinAndroid70 , cache_XamarinAndroid71 , cache_XamarinAndroid72 , cache_XamarinAndroid73 , cache_XamarinAndroid74 , cache_XamarinAndroid80 , cache_XamarinAndroid81 , cache_XamarinAndroid82 , cache_XamarinAndroid83 , cache_XamarinAndroid90 , cache_XamarinAndroid91 , cache_XamarinAndroid92 , cache_XamarinAndroid93 , cache_XamarinAndroid94 , cache_XamarinAndroid100 , cache_XamarinAndroid101 , cache_XamarinAndroid102 , cache_XamarinAndroid103 , cache_XamarinAndroid110 , cache_XamarinAndroid111 , cache_XamarinAndroid112 , cache_XamarinAndroid113 , cache_XamarinAndroid120 , cache_XamarinAndroid121 , cache_XamarinAndroid122 , cache_MonoAndroid46 , cache_MonoAndroid54 , cache_MonoAndroid64 , cache_UAP80 , cache_UAP81 , cache_UAP100 , cache_UAP10016299 , cache_UAP10019041 );