提高RabbitMQ的File descriptors

一、修改 linux ulimit

二、

[root@rabbitmq rabbitmq]# ulimit -n 65535
[root@rabbitmq rabbitmq]# ulimit -n
65535
[root@rabbitmq rabbitmq]# vim /etc/security/limits.conf

* soft nofile 65536

* hard nofile 131072

* soft nproc 2048

* hard nproc 4096

[root@rabbitmq rabbitmq]# rabbitmqctl stop
Stopping and halting node rabbit@rabbitmq
[root@rabbitmq rabbitmq]# rabbitmq-server -detached
Warning: PID file not written; -detached was passed.
[root@rabbitmq rabbitmq]# 

三、修改成功

原文地址:https://www.cnblogs.com/royfans/p/11305203.html