Linux登录报错-Connection closed by foreign host
来源:互联网 发布:2003办公软件下载 编辑:程序博客网 时间:2024/05/09 11:40
问题描述:
远程linux登录oracle用户,报错:
Connection closed by foreign host.
然后用root用户登录之后,切换oracle,报错:
su: /bin/bash: Too many open files in system
问题原因:
打开文件的数量以达到上限。
解决方法:
增加打开文件的最大数。
查看最大数:
cat /proc/sys/fs/file-max
增加最大数:
vi /etc/sysctl.conf
修改最后一行
fs.file-max = 266144
为
fs.file-max = 2661440
再次查看:
cat /proc/sys/fs/file-max
发现已经修改,此时重新oracle用户登录,成功。
参考网址
0 0
- Linux登录报错-Connection closed by foreign host
- Connection closed by foreign host.
- Connection closed by foreign host.
- Connection closed by foreign host.
- Connection closed by foreign host.
- Connection closed by foreign host
- Connection closed by foreign host
- Connection closed by foreign host
- Connection closed by foreign host
- ssh连接报Connection closed by foreign host.
- ubuntu xshell报错解决方法: Connection closed by foreign host.错误
- Connection closed by foreign host问题解决
- Connection closed by foreign host. Disconnected from remote host
- ubuntu 12.04中xshell链接报: Connection closed by foreign host.错误
- XShell连不上本机虚拟机报:Connection closed by foreign host.
- ubuntu 12.04中xshell链接报: Connection closed by foreign host.错误
- 修改sshd_config解决 xshell 链接 linux 错误 connection closed by foreign host
- 修改sshd_config解决 xshell 链接 linux 错误 connection closed by foreign host
- 建立更可靠的开发方法——基于官方API文档的学习尝试之异常处理
- 多线程 : 面试题[总结]
- 关于账号的注册和登录功能的实现
- Linux常用命令
- 揭秘VR游戏开发:与传统3D差距仅10% 低延迟是核心
- Linux登录报错-Connection closed by foreign host
- JS贪心解法入门:找零问题
- iOS开发中几种常用的手势以及触摸事件的使用总结
- MAT 使用入门
- 表单验证常用正则(强烈推荐大家收藏下)
- ADB 相关
- 西普实验吧CTF-聪明的打字员
- 转:oracle 10g函数大全--分析函数
- Mybatis通用Mapper