在 Linux 上安装 MQ 8 时,我收到了增加 file-max 和 nofile 的警告。
警告:此系统的系统设置不符合此产品的建议
有关更多信息,请参阅日志文件“/tmp/mqconfig.4192.log”。
[root@localhost server]# cat /tmp/mqconfig.4192.log
mqconfig: V3.7 analyzing CentOS Linux release 7.0.1406 (Core) settings for WebSphere MQ V8.0 System V Semaphores
semmsl (sem:1) 250 semaphores IBM>=32 PASS
semmns (sem:2) 0 of 32000 semaphores (0%) IBM>=4096 PASS
semopm (sem:3) 32 operations IBM>=32 PASS
semmni (sem:4) 0 of 128 sets (0%) IBM>=128 PASS
System V Shared Memory
shmmax 4294967295 bytes IBM>=268435456 PASS
shmmni 5 of 4096 sets (0%) IBM>=4096 PASS
shmall 3424 of 268435456 pages (0%) IBM>=2097152 PASS
System Settings
file-max 5568 of 201932 files (2%) IBM>=524288 FAIL
Current User Limits (root)
nofile (-Hn) 4096 files IBM>=10240 FAIL
nofile (-Sn) 1024 files IBM>=10240 FAIL
nproc (-Hu) 0 of 15891 processes (0%) IBM>=4096 PASS
nproc (-Su) 0 of 15891 processes (0%) IBM>=4096 PASS 您是否遇到同样的问题?
IBM MQ 建议使用以下最低配置:
- fs.文件最大值 = 524288
- 没有文件 = 10240

配置 fs.file-max
- 创建 /etc/sysctl.conf 的备份。
- 在文本编辑器中打开/etc/sysctl.conf并添加以下内容:
fs.file-max = 524288 - 保存文件。要立即加载此配置,您需要运行
sysctl –p命令。否则,它将在下次系统重新启动时加载。
sysctl –p 
设置无文件
- 创建 /etc/security/limits.conf 的备份。
- 在文本编辑器中打开 /etc/security/limits.conf 并执行以下操作:
mqm hard nofile 10240
mqm soft nofile 10240 - 保存文件。
再次启动MQ安装,问题应该就好了。
“增加 Linux 上 MQ 安装的 file-max 和 nofile 限制”的简单易懂的解释!您必须观看的最佳 2 个视频
[Linux] MakuluLinuxを試してみた
Linux への IBM MQ のインストール




![2021 年如何设置 Raspberry Pi Web 服务器 [指南]](https://i0.wp.com/pcmanabu.com/wp-content/uploads/2019/10/web-server-02-309x198.png?w=1200&resize=1200,0&ssl=1)

