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

原文地址:https://www.cnblogs.com/rusking/p/4838541.html