无法在 Linux(Oracle Linux 服务器版本 6.7/RHEL)上安装 rabbitmq-server

Failed to install rabbitmq-server on Linux(Oracle Linux Server release 6.7/RHEL)

安装时出现以下错误。

$ sudo yum install rabbitmq-server
Loaded plugins: aliases, changelog, fastestmirror, kabi, presto, refresh-packagekit, security, tmprepo, ulninfo, verify, versionlock
Loading support for kernel ABI
Setting up Install Process
Loading mirror speeds from cached hostfile
 * epel: archive.linux.duke.edu
 * ol6_UEKR3: slcac475.us.oracle.com
 * ol6_latest: slcac475.us.oracle.com
Resolving Dependencies
--> Running transaction check
---> Package rabbitmq-server.noarch 0:3.1.5-1.el6 will be installed
--> Finished Dependency Resolution`
...
...
...
groupadd: Can't get unique system GID (no more available GIDs)
useradd: group 'rabbitmq' does not exist 
error: %pre(rabbitmq-server-3.1.5-1.el6.noarch) scriptlet failed, exit status 6
Error in PREIN scriptlet in rpm package rabbitmq-server-3.1.5-1.el6.noarch
error:   install: %pre scriptlet failed (2), skipping rabbitmq-server-3.1.5-1.el6
Verifying  :
 rabbitmq-server-3.1.5-1.el6.noarch

Failed 
rabbitmq-server.noarch 0:3.1.5-1.el6
Complete!

注意:我已经安装了 erlang

我已经引用了一些帖子

Installing rabbitmq-server on RHEL

RabbitMQ install issue on Centos 5.5

/etc/login.defs检查你是否有这样的东西,如果没有就添加进去。

SYS_GID_MIN               2000
SYS_GID_MAX               9000