安装
下载:wget http://mkt.orientdb.com/CE-2217-linux
解压:tar zxvf orientdb.tar.gz
启动:cd bin && sh server.sh
配置:我简单配置了web的端口,config/orientdb-server-config.xml
Paste_Image.png
如果第一次启动需要设置密码,按照提示设置即可,本人在设置密码后出现java报错,发现是java版本太低的原因
Paste_Image.png
换成1.7就可以了
访问:有两种方式访问db
- console.sh ,连接db不像mysql那样直接use dbname,在orientdb中CONNECT remote:localhost/road root pwd 就可以连上对应的db
- http://...:8480/studio/index.html(由于在公司服务器上,就不暴露ip了)
Paste_Image.png
界面还是挺不错的呢
删除class:DROP CLASS <class> [IF EXISTS] [ UNSAFE ]
创建class:CREATE CLASS <class> [IF NOT EXISTS] [EXTENDS <super-class>] [CLUSTER <cluster-id>*] [CLUSTERS <total-cluster-number>] [ABSTRACT]
【未完待续】