如何在Docker上不到2分钟建立一个多模型数据库?
ArangoDB是一个有趣的新型多模型数据库,它融合了三种流行的数据模型:文档,图形和键值存储。一些其他功能,如数据库端脚本终端也非常有趣的。试一试!让我们启动设置,并在Docker上的DigitalOcean上部署一个现成的ArangoDB设置。
阅读这篇文章的媒介预测是2分钟。您也可以在这段时间内设置ArangoDB!其实你只需要点击大约5次,然后执行3个命令。
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.
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.
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 ArangoDB on Github
汤森路透 Thomson Reuters--使用多模型数据库ArangoDB 打造快速安全的简单视图分析
GermanWifi阅读 2.3k
正则表达式实例
寒青赞 56阅读 8.5k评论 11
JavaScript有用的代码片段和trick
jenemy赞 48阅读 7k评论 12
从零搭建 Node.js 企业级 Web 服务器(十五):总结与展望
乌柏木赞 75阅读 7.1k评论 16
再也不学AJAX了!(二)使用AJAX ① XMLHttpRequest
libinfs赞 42阅读 6.8k评论 12
从零搭建 Node.js 企业级 Web 服务器(一):接口与分层
乌柏木赞 45阅读 8.5k评论 6
从零搭建 Node.js 企业级 Web 服务器(二):校验
乌柏木赞 35阅读 6.7k评论 10
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。