简体   繁体   English

是否有可能使 ArangoDB 可移植?

[英]Is it possible to make ArangoDB portable?

I am a developer working on a multi-platform desktop applications and I am looking to use arangodb.我是一名开发多平台桌面应用程序的开发人员,我希望使用 arangodb。 however, my application is and must remain portable.... to be able to run from a usb stick, a hard drive or a network drive (not sure bout this one yet)但是,我的应用程序是并且必须保持便携性.... 能够从 USB 记忆棒、硬盘驱动器或网络驱动器运行(还不确定这个)

I am switching over from orient-db, which I chose because it was multi-model and portable (except for requiring java)....but lets say it seems like orientdb has major issues.我正在从 orient-db 切换过来,我选择了它,因为它是多模型和可移植的(除了需要 java)……但是可以说 orientdb 似乎存在重大问题。

How can I go about learning how to package arangodb with my application and run the service on demand only when my application is started?我如何开始学习如何将 arangodb 与我的应用程序打包并仅在我的应用程序启动时按需运行服务?

With the ArangoDB 3.1 Release all packaging is being moved to cmake/cpack.随着 ArangoDB 3.1 的发布,所有的包装都被转移到了 cmake/cpack。

Aside of the general install scripts all logic for this is in cmake packges/ and under the respective directories under Installation .除了一般的安装脚本之外, 所有的逻辑都在cmake packges/Installation下的相应目录下

You can run ArangoDB completely without configuration file as all settings can be specified via commandline argument too .您可以在没有配置文件的情况下完全运行 ArangoDB,因为所有设置也可以通过命令行参数指定

Depending on the installation target, the means of starting a service can be different;根据安装目标,启动服务的方式可能不同; naming Windows services , Linux system V init scripts , Linux systemd unit files .命名Windows 服务Linux 系统 V 初始化脚本Linux systemd 单元文件

Similar to other install processes, you should launch it once to provision the access credetials .与其他安装过程类似, 您应该启动一次以提供访问凭证

ArangoDBs windows installer is not mandatory, as the cookbook for the xcopy install demonstrates . ArangoDBs windows 安装程序不是强制性的, 因为 xcopy 安装的说明书演示了.

In the end you will have to launch ArangoDB the same way as you launched OrientDB;最后,您必须以与启动 OrientDB 相同的方式启动 ArangoDB; just that the Arangodb binary has to be chosen according to your system needs the same way you have chosen the java interpreter for OrientDB.只是必须根据您的系统需要选择 Arangodb 二进制文件,就像您为 OrientDB 选择 Java 解释器一样。

You should be able to run the ArangoDB binaries and its js libraries from any source drive;您应该能够从任何源驱动器运行 ArangoDB 二进制文件及其 js 库; startup speed may vary depending on the drive speed.启动速度可能因驱动器速度而异。 I would however recommend running it with the database folders ( --database.directory ) pointing to a local spinning disk or locally attached storage since running that on network drives is not supported.但是,我建议使用指向本地旋转磁盘或本地附加存储的数据库文件夹 ( --database.directory ) 运行它,因为不支持在网络驱动器上运行它。

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

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