华为云主机上搭建单机版的arangodb
系统:centos7.5
可以直接上arangodb官网
https://www.arangodb.com/download-arangodb-enterprise/install-enterprise/centos_/
下载安装包安装;也可以通过获取yum源的方式安装(云主机要能上外网)。
cd /etc/yum.repos.d/
curl -OL https://download.arangodb.com/arangodb34/RPM/arangodb.repo
yum repolist
yum -y install arangodb3e-3.4.4
yum -y install arangodb3e-debuginfo-3.4.4
安装完成后,会有提示配置文件的路径:
Configuration file:
/etc/arangodb3/arangod.conf
有启动程序的指令:
Start ArangoDB service:
> systemctl start arangodb3.service
Enable ArangoDB service:
> systemctl enable arangodb3.service
会出现一个初始密码,也可用指令进行修改密码。
run 'arango-secure-installation' to set a root password
the current password is 'e781c685943c0cbe259b7472939f93bf'
使用arangosh指令在命令行上连接,连接成功后可以查看里面的库(默认有一个system的库)。
# arangosh
_system> db._databases();
如绑定了公网IP,也可通过公网IP访问arangodb的页面。
默认只监听本地的回环地址,需要修改配置文件,修改监听地址为0.0.0.0,默认的监听端口为8529;
# vim /etc/arangodb3/arangod.conf
修改配置文件完成后,重启服务,即可访问页面。
# systemctl restart arangodb3
链接到http://x.x.x.x:8529/