您的位置:首页 > 运维架构 > Shell

Linux ssh -bash: ulimit: 问题解决

2016-02-15 00:00 495 查看
摘要: ssh登录产生-bash: ulimit: open files: cannot modify limit: Operation not permitted如何解决呢?

最近在搭建新的hadoop集群的时候发现已经配置过互信的机器中有一台ssh登录的时候会出现如下提示:

[hadoop@hadoop207 ~]$ ssh hadoop208
Last login: Thu Jan 28 16:43:22 2016 from hadoop207.tadu.cn
-bash: ulimit: open files: cannot modify limit: Operation not permitted

你只需要修改/etc/security/limits.conf,加入下面内容就行了

# End of file
* soft nofile 819200
* hard nofile 819200
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息