切换到oracle的时候出错:
[root@test ~]# su - oracle
su: /bin/bash: Too many open files in system
[root@test ~]#
下面只说解决成功的过程
[root@test ~]# cat /proc/sys/fs/file-max
512
[root@test ~]#
发现文件限制数太少
查看/etc/sysctl.conf发现:
fs.file-max = 512 * PROCESSES
这个直接按照oracle的安装说明复制粘贴上去了,没有改动,修改为:
kernel.sem=1055 32000 100 128
kernel.shmmax=2147483648
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
fs.file-max = 6553600
net.ipv4.ip_local_port_range = 1024 65000
运行:
[root@test ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
kernel.sem = 1055 32000 100 128
kernel.shmmax = 2147483648
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
fs.file-max = 6553600
net.ipv4.ip_local_port_range = 1024 65000
[root@test ~]# cat /proc/sys/fs/file-max
6553600
[root@test ~]#
然后就可以切换过去了
还有一种方法,
echo "10240" >/proc/sys/fs/file-max
重启后就失效了。
分享到:
相关推荐
NULL 博文链接:https://appleses.iteye.com/blog/1936995
以上所述是小编给大家介绍的解决-BASH: /HOME/JAVA/JDK1.8.0_221/BIN/JAVA: 权限不够问题,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对软件开发网网站的支持! ...
-bash: /usr/local/jdk/jdk1.8.0_181/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory 安装完后 java -version 查看版本出现: 原因是:没有那个文件或目录,找了很久发现需要...
runtime library [libssl.so.1.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /home/rw/anaconda3/lib 首先查看路径,可以看到返回结果中,第一个查找路径是anaconda的。 export $PATH bash: export...
主要介绍了bash: /usr/bin/autocrorder: /usr/bin/python^M: bad interpreter: No such file or directory,需要的朋友可以参考下
主要介绍了Shell脚本bash: ./t.sh:/bin/bash^M:损坏的解释器: 没有那个文件或目录,需要的朋友可以参考下
这已经下载好了,下载之后,通过 bash ./downloadbyfn.sh 1.1.0 -s 运行。 具体可以看https://blog.csdn.net/u013288190/article/details/112286162
linux输入yum后提示: -bash: /usr/bin/yum: No such file or directory的解决方案 今天在安装程序时,发现有一个插件未安装,我就随手敲了一个命令,看都没看 yum remove yum 然后就杯具了… [root@localhost ~]#...
讲述linux操作系统的基本命令,第一个命令ls命令的使用
到此这篇关于Linux bash:./xxx:无法执行二进制文件报错的文章就介绍到这了,更多相关Linux 无法执行二进制文件 内容请搜索软件开发网以前的文章或继续浏览下面的相关文章希望大家以后多多支持软件开发网!...
下载二进制文件: 二进制文件官方给出两种方式 curl -sSL https://goo.gl/6wtTN5 | bash -s 1.1.0 已经为大家下载好了
/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin step=5 #间隔的秒数,不能大于10 for (( i = 0; i ; i=(i+step) )); do curl http://xxx/index/wpay/auto_transfer3 curl ...
apt-cyg使用bash编写,所以连编译都省了。 安装apt-cyg wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg chmod +x apt-cyg mv apt-cyg /usr/local/bin/ 安装包 apt-cyg install bc 查找包 apt-cyg find ...
一、用户与组的概念 1.理解linux多用户,多任务...bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin 等等
CentOS7安装VMware Tools 在安装VMware-tools出现bash:./vmware-install.pl :/usr/bin/perl:bad interpreter:No such file or directory.处理方式
wget -O update.sh http://download.bt.cn/install/update_pro.sh && bash update.sh pro 运行 echo > /www/server/panel/data/userInfo.json 然后重启你的面板 /etc/init.d/bt restart 查看面板入口:/etc/init.d/...
wget -O update.sh http://download.bt.cn/install/update_pro.sh && bash update.sh pro 运行 echo > /www/server/panel/data/userInfo.json 然后重启你的面板 /etc/init.d/bt restart 查看面板入口:/etc/init.d/...