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

三、修改成功

posted @ 2019-08-05 19:57  RoyFans  阅读(1093)  评论(0编辑  收藏  举报