简体   繁体   English

我可以在同一台服务器上安装ArangoDB 2.8和ArangoDB 3吗?

[英]Can I have ArangoDB 2.8 and ArangoDB 3 on the same server?

I need to transfer a lot of databases from arango 2.8 to version 3. 我需要将许多数据库从arango 2.8转移到版本3。

Can I run them simultaneously, on the same machine, on different ports in order to export them and import them on the spot ? 是否可以在同一台计算机上的不同端口上同时运行它们,以便在现场导出和导入它们?

I would recommend running Arangodump and Arangoimp. 我建议运行Arangodump和Arangoimp。 This simply exports entire collections to json files which can be rapidly imported. 这只是将整个集合导出到可以快速导入的json文件中。 Details here . 详细信息在这里 You can simply Arangodump your Arango 2.8 files, uninstall ArangoDB 2.8, install 3.0, and import them into Arango 3.0. 您可以简单地Arangodump Arango 2.8文件,卸载ArangoDB 2.8,安装3.0并将它们导入Arango 3.0。 I don't have any experience running two versions simultaneously, but unless they are containerized I would not recommend trying, as both versions, when locally installed, use files in a directory with the same name ( /usr/share/arangodb ). 我没有同时运行两个版本的经验,但是除非将它们进行容器化,否则我不建议尝试,因为在本地安装这两个版本时,请使用目录中具有相同名称的文件( /usr/share/arangodb )。

Currently the only way to run two versions of ArangoDB on the same machine would be to have a chroot with the other version, or run the second version in a docker environment. 当前,在同一台计算机上运行两个版本的ArangoDB的唯一方法是将chroot与另一个版本一起使用,或者在docker环境中运行第二个版本。

There are files with the same locations in the 2.8 and 3.0 packages, hence the arangodb3 packages conflict with with the arangodb version 2.x packages. 2.8和3.0软件包中的文件具有相同的位置,因此arangodb3软件包与arangodb 2.x版软件包冲突。

You can in debian/ubuntu use DeBootstrap to initialize a minimal chroot for ArangoDB; 您可以在debian / ubuntu中使用DeBootstrapArangoDB初始化最小的chroot for Centos/Redhat etc. yumbootstrap seems to provide a similar solution. 对于Centos / Redhat等。yumbootstrap似乎提供了类似的解决方案。 As Nate already told you, you need to configure the ports arangod binds to a different port . 就像Nate告诉您的那样,您需要配置arangod绑定到其他端口的端口

Using docker you can use our official ArangoDB image in the docker library . 使用泊坞窗 ,你可以在泊坞窗库使用我们的官方ArangoDB图像 Since docker sets up virtual ips, you probably can use the same port - as long as you don't bind 0.0.0.0:8529 in the host system. 由于docker设置了虚拟ip,因此您可以使用相同的端口-只要您在主机系统中未绑定0.0.0.0:8529 Please pay attention to the Persistent Data chapter of the docker container manual and read on: 请注意docker容器手册中的Persistent Data一章,并继续阅读:

Once your migration is complete, you can install ArangoDB 3 in the host, and move the database directories over. 迁移完成后,您可以在主机中安装ArangoDB 3,并将数据库目录移到上方。 You should take care that the chroot is on the same volume as your current /var/lib/arangodb directory, so moving is cheap. 您应该注意chroot与您当前的/var/lib/arangodb目录在同一卷上,因此移动很便宜。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM