其他分享
首页 > 其他分享> > 提高RabbitMQ的File descriptors

提高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]# 

三、修改成功

标签:ulimit,descriptors,hard,nofile,rabbitmq,RabbitMQ,File,65535,root
来源: https://www.cnblogs.com/royfans/p/11305203.html