博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
教你在Docker上不到2分钟建立一个多模型数据库!
阅读量:6911 次
发布时间:2019-06-27

本文共 1933 字,大约阅读时间需要 6 分钟。

hot3.png

ArangoDB is an interesting young database, which compares three popular data models: documents, graphs, and key-value stores. Some other features like database-side scripting endpoints are very interesting too. Give it a try! Let’s kickstart the setup and deploy a ready ArangoDB setup on DigitalOcean with docker. 

Mediums forecast of reading this article is 2 minutes. You can setup ArangoDB within this time too! In fact, you only have to click about 5 times and execute 3 commands.

1. Create DigitalOcean Droplet with Docker

Register/Log-in to DigitalOcean and create a new droplet with docker preinstalled:

“Create Droplet” -> “One-click Apps” -> “Docker 17.03.0-ce on 16.04

The versions might differ.

Choose your preferred settings (size, region etc.) and add an SSH key to access the droplet afterwards.

2. Install & start ArangoDB

Just connect to your droplet (use your droplets IP and the SSH key)..

ssh -i /path/to/your/ssh-key root@12.345.67.89

.. and execute one single command (choose your custom password instead of ha2WF4qdHc):

docker run -e ARANGO_ROOT_PASSWORD=ha2WF4qdHc -p 8529:8529 -d arangodb/arangodb

The command does certain things:

  • It downloads the newest ArangoDB docker image (because it is not yet available on the droplet).
  • It installs the ArangeDB docker image, creates a root user with the given password and starts the container.
  • It makes sure that the ArangoDB port 8529 is accessible from outside the docker container.

3. Open it for the world

Now, wo just have to open the port of the droplet to access the database from the “open” internet:

ufw allow 8529

Ready to create great apps with ArangoDB!

The database endpoint is ready for queries!

You can create databases, users, permissions and many more from the built-in ArangoDB interface. Just use the IP of your droplet and the default ArangoDB-Port 8529.

http://12.345.67.89:8529/

Have fun! Find .

转载于:https://my.oschina.net/u/3491128/blog/918249

你可能感兴趣的文章
DHCP 服务器 Server2003 到 Server 2012 迁移(一)
查看>>
shell中“2 > &1”的含义
查看>>
Puppet 源码安装篇
查看>>
Ignoring query to other database
查看>>
Centos6.4安装OTRS必须成功版!
查看>>
List,ArrayList,Map循环遍历
查看>>
我的友情链接
查看>>
objectclass and objectcategory
查看>>
常用模块自动化安装脚本
查看>>
我的友情链接
查看>>
SQL Server数据库优化方案
查看>>
Redis基础教程第2节 Redis和NoSql 介绍与应用场景
查看>>
vmstat
查看>>
Word 2003操作技巧之改变默认字体及恢复方法
查看>>
redux-form(V7.4.2)笔记(三)之Flow简介
查看>>
Asp.Net 网站优化 数据库优化措施 使用主从库(上)
查看>>
华为存储行吗?!始终保持一种学习的心态
查看>>
wxPython StyledTextCtrl events
查看>>
Docker
查看>>
Linux命令行测试网速
查看>>