首页 > 其他 > 详细

ulimit: open files: cannot modify limit 解决

时间:2014-12-04 06:35:57      阅读:473      评论:0      收藏:0      [点我收藏+]

在执行该命令时报下列错误

[root@ ~]# valgrind --tool=memcheck ./run
==2932== Memcheck, a memory error detector
==2932== Copyright (C) 2002-2012, and GNU GPL‘d, by Julian Seward et al.
==2932== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==2932== Command: ./run
==2932==
./run: line 56: ulimit: open files: cannot modify limit: 不允许的操作

 

修改该文件

[root@ ~]# vim /etc/security/limits.conf

*                soft nofile            65535
*                hard nofile            65535
*                soft nproc             65535
*                hard nproc             65535

 

问题解决

[root@ ~]# valgrind --tool=memcheck ./run
==2401== Memcheck, a memory error detector
==2401== Copyright (C) 2002-2012, and GNU GPL‘d, by Julian Seward et al.
==2401== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==2401== Command: ./run
==2401==

本文出自 “云人生” 博客,请务必保留此出处http://ovcer.blog.51cto.com/1145188/1586079

ulimit: open files: cannot modify limit 解决

原文:http://ovcer.blog.51cto.com/1145188/1586079

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!