简体   繁体   English

ArchLinux 上的 Arangodb 安装

[英]Arangodb installation on ArchLinux

OS : ArchLinux操作系统:ArchLinux
Source : https://github.com/sleepycat/arangodb_arch arangodb version : 3.6.3来源https://github.com/sleepycat/arangodb_arch arangodb 版本:3.6.3

what I did我做了什么

git clone https://github.com/sleepycat/arangodb_arch.git
cd arangodb_arch
makepkg 
# or assuming you have a gpg key:
makepkg --sign

After it passes tests successfully installation fails with this error成功通过测试后安装失败并出现此错误

==> Entering fakeroot environment...
==> Starting package()...
    -> Preparing ArangoDB.
install: invalid user ‘arangodb’
==> ERROR: A failure occurred in package().
Aborting...

I thought this error may be related to arangodb-users.conf -->我认为这个错误可能与 arangodb-users.conf 有关 -->

u arangodb - "ArangoDB system user"

I tried to change the user and username but It raises new Error on validating source我试图更改用户和用户名,但在验证源时引发了新错误

==> ERROR: One or more files did not pass the validity check!

thank you in advance先感谢您

so after lots of searches, this is what you should do for installing Arangodb on ArchLinux所以经过大量搜索,这就是在 ArchLinux 上安装 Arangodb 应该做的

before installation安装前

sudo useradd -r arangodb

installation安装

yay -S arangodb

after installation安装后

  1. sudo systemctl daemon-reload sudo systemctl 守护进程重新加载
  2. sudo systemctl enable arangodb3.service sudo systemctl 启用 arangodb3.service
  3. sudo systemctl start arangodb3.service sudo systemctl 启动 arangodb3.service
  4. /etc/arangodb3/arangosh.conf => authentication = false /etc/arangodb3/arangosh.conf => 身份验证 = false
  5. /etc/arangodb3/arangod.conf => authentication = false /etc/arangodb3/arangod.conf => 认证 = false
  6. Then set the passwords and create the root user然后设置密码并创建root用户
arangosh
require("org/arangodb/users").update("root", "mypassword")
  1. /etc/arangodb3/arangosh.conf => authentication = true /etc/arangodb3/arangosh.conf => 身份验证 = true
  2. /etc/arangodb3/arangod.conf => authentication = true /etc/arangodb3/arangod.conf => 身份验证 = true
  3. sudo systemctl restart arangodb3.service sudo systemctl 重启 arangodb3.service

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

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