chenxinzzbin的个人博客分享 http://blog.sciencenet.cn/u/chenxinzzbin

博文

Linux 修改打开文件最大数两种方法

已有 3571 次阅读 2018-9-10 17:35 |系统分类:科研笔记

 1、修改 /etc/security/limits.conf

追加如下内容:

* hard nofile 1024000
* soft nofile 1024000

2、修改/etc/profile

最后添加如下内容:

ulimit -SHn 1024000

-S soft limits

-H hard limits

-n 打开文件数的最大值




https://blog.sciencenet.cn/blog-1339458-1133990.html

上一篇:论文的DOI号是什么意思
收藏 IP: 123.160.246.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-19 16:26

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部