unable to open session

来源:互联网 发布:魔趣 优化 编辑:程序博客网 时间:2024/05/18 02:59

今天在配置CentOS以安装Oracle的过程中,完成配置后出现无法登陆系统的情况,报告错误unable to open session

遂找来安装盘,以rescue模式进入shell,执行命令:

#tail -f /var/log/secure

得到的日志信息表明问题出在/etc/security/limits.conf上,也就是之前配置时改动的文件之一,于是现将之前添加的内容从limits.conf中删除,再启动时发现已经能正常登陆了。

为什么会出现这种情况呢?

之前添加的内容如下:

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
root soft nproc 2047
root hard nproc 16384
root soft nofile 1024
root hard nofile 65536

可以确定的是,这些内容本身是没有问题的,那么问题可能出在格式上,因为其实我是将一份预先做好的limits.conf文档从Windows系统中拷贝到CentOS中覆盖原文件的,而这份预先做好的limits.conf文档曾在notepad++中编辑过,可能这就是问题所在了

原创粉丝点击