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连接数据库正常。

  • 相关阅读:
    WinCE 与通讯模块
    6174问题
    阶乘因式分解(一)
    三个数从小到大排序
    公约数和公倍数
    水仙花数
    韩信点兵
    5个数求最值
    求转置矩阵问题
    孪生素数问题
  • 原文地址:https://www.cnblogs.com/rusking/p/4838541.html
Copyright © 2011-2022 走看看