| 分类: 服务器托管 |
错误现象:在很短的时间内就失去连接,并报'Software caused connection abort”
http://www.467.cn/UploadFiles/2016221/20160221181868516851.jpg
方案一:
1. 在putty 的Connection 项目中设定 'Sending of null packets to keep
session active', 也就是每隔几秒传送一个 null packet 让 session不会
timeout
2. 在 sshd host 的 /etc/ssh/sshd_config 设定: TCPKeepAlive
yes
方案二:
修改服务器中/etc/ssh/sshd.config
文件,将LoginGraceTime的值设为0,默认为2m,TCPKeepAlive 设为yes, 然后使用service sshd
restart来重启sshd服务,这样就可以了。
补充:
在sshd_config中有LoginGraceTime变量,其值的参数是秒,表示在用户用ssh登陆,但是没有输入密码时,多少秒后自动断链.
这个变量在s10的x86和S9下都工作正常.但是到了S10的sparc机型中,却不工作.
| 分类: 服务器托管 |
| 分类: 服务器托管 |
数据库连接的文件报错:[Microsoft][ODBC SQL Server
Driver][DBNETLIB]一般性网络错误。请检查网络文档。
Microsoft OLE DB Provider for ODBC Drivers
(0x80004005)[Microsoft][ODBC SQL Server
Driver][DBNETLIB]一般性网络错误。请检查网络文档。
Set conn = Server.CreateObject('ADODB.Connection') connStr =
'driver={SQL Server};server=127.0.0.1;database=467cn;uid=sa;pwd=sa'
conn.Open connStr
解决方法:
请尝试把127.0.0.1换(local) 或者计算机名称。解决问题