gpt4 book ai didi

elasticsearch - Logstash安装报错: can't get unique system GID (no more available GIDs)

转载 作者:行者123 更新时间:2023-11-29 02:53:58 37 4
gpt4 key购买 nike

我正在尝试在 red hat vm 上使用 yum 安装 logstash,我已经根据指南设置了 logstash.repo 文件并运行了

yum 安装 logstash

但是我在下载所有内容后出现以下错误

...

logstash-2.3.2-1.noarch.rpm | 72 MB 00:52
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
groupadd: Can't get unique system GID (no more available GIDs)
useradd: group 'logstash' does not exist
error: %pre(logstash-1:2.3.2-1.noarch) scriptlet failed, exit status 6
Error in PREIN scriptlet in rpm package 1:logstash-2.3.2-1.noarch
error: install: %pre scriptlet failed (2), skipping logstash-1:2.3.2-1
Verifying : 1:logstash-2.3.2-1.noarch 1/1

Failed:
logstash.noarch 1:2.3.2-1

Complete!

我找不到太多关于这个的信息。有什么建议吗?

最佳答案

groupadd 从 /etc/login.defs 文件中确定用于创建常规组的 gids

在我的 centos 6 盒子里。 /etc/login.defs 包含以下两行:

#
# Min/max values for automatic gid selection in groupadd
#
GID_MIN 500
GID_MAX 60000

对于系统帐户,将这两行添加到您的 /etc/login.defs

# System accounts
SYS_GID_MIN 100
SYS_GID_MAX 499

关于elasticsearch - Logstash安装报错: can't get unique system GID (no more available GIDs),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37817473/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com