lshboo 发表于 2019-1-27 10:13:45

su: /bin/bash: Too many open files in system

  root下设置完/etc/sysctl.conf,键入
  #su - oracle,显示
  su: /bin/bash: Too many open files in system
  不得已,查看原因,cat /home/oracle/.bash_profile:
  kernel.sem=1055 32000 100 128
kernel.shmmax=2147483648
fs.file-max = 512 * PROCESSES --数值太小
  kernel.shmall = 2097152
net.ipv4.tcp_sack = 0
net.ipv4.tcp_timestamps = 0
net.ipv4.conf.default.rp_filter = 0
net.core.optmem_max = 65535
net.core.rmem_default = 4194304
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 262144
net.ipv4.ip_local_port_range = 1024 65000
  ***************************************
  原来是它在搞鬼,擦,修改如下
  fs.file-max = 6553600                --这个数值可以随意,我习惯这个数字,总之超过512就行,不行你再改,呵呵
  保存退出,再次执行:
  sysctl -p



页: [1]
查看完整版本: su: /bin/bash: Too many open files in system