普通用户登录系统报错,提示:

-bash: ulimit: open files: cannot modify limit: Operation not permitted.

处理方法:

#vi /etc/ssh/sshd_config  --使用root账号修改UseLoin 为yes

UseLogin yes

# service sshd restart     --重启ssh生效

 

普通账号登录系统:

$ vi .bash_profile  ---增加下面一行

ulimit -n 65535

$ source .bash_profile  --使用环境变量生效

$ ulimit –n   --验证设置

65535

=====

另外一个相关文件:

/etc/security/limits.conf

相关文章:

  • 2021-04-04
  • 2021-10-04
  • 2021-07-28
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-28
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-11-30
相关资源
相似解决方案