zoukankan      html  css  js  c++  java
  • telnet IP不通/sybase central工具无法连接到数据库

    问题描述:客户端sybase central工具无法连接到数据库

    服务端操作系统:RHEL5.8_x64,安装sybase-ASE15.7,端口号4112  IP:192.168.1.220  hostname:rhel5.8-ase.com 客户端为windows系统。

    安装完成后,在服务端使用isql工具可正常登录数据库。防火墙已关闭。

    [sybase@rhel5 ~]$ isql -Usa -Pzxcvbnm -Srhel5
    1>

    netstat查看4112端口处于监听状态:

    客户端sybase central工具使用IP和主机名都无法连接到数据库。

    CMD窗口下测试: telnet 192.168.1.220 4112   不通          

                            telnet rhel5.8-ase.com  4112     不通 

                            ping主机名和IP都联通

    解决方法:

    修改hosts文件,删除或注释这一行:127.0.0.1   rhel5.8-ase.com rhel5.8-ase

    [sybase@rhel5 ~]$ vi /etc/hosts
    
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    192.168.1.220   rhel5.8-ase.com rhel5.8-ase
    #127.0.0.1   rhel5.8-ase.com rhel5.8-ase

    删除后从客户端telnet IP 端口 正常。

    sybase central 使用ip连接数据库正常。

  • 相关阅读:
    《使用Hibernate开发租房系统》内部测试笔试题
    C++第十课 字符串
    【011】字符数组
    C++第九课 数组
    C++第八课 局部变量和全局变量
    【010】递归函数
    C++第七课 函数2
    【009】阅读代码
    C++第六课 函数1
    【008】查找素数
  • 原文地址:https://www.cnblogs.com/rusking/p/4838541.html
Copyright © 2011-2022 走看看