Centos7修改最大打开文件数
默认的最大打开文件数是1024.不满足生产环境的要求。按照如下配置:
- 修改/etc/security/文件,追加如下内容:
* soft nofile 65535
* hard nofile 65535
- 修改/etc/profile,追加如下内容:
ulimit -n 65535
- 重启主机,然后使用
ulimit -n
检查
默认的最大打开文件数是1024.不满足生产环境的要求。按照如下配置:
* soft nofile 65535
* hard nofile 65535
ulimit -n 65535
ulimit -n
检查