互联网服务客户端

客户端访问远程数据库服务器配置

客户端操作
/etc/hosts   
        ip hostname   最后一行加上对方机的相应设置
/etc/services
        servicesname port名/tcp  最后一行加上对方机的相应设置
/etc/ntp.conf
      文件中增加 服务端的主机名称
$INFORMIXDIR/etc/informix/etc/sqlhosts
     服务端的信息 使用

设置.profile 为对方的 INformIXSERVER=


都需要操作部分
在2个机器的 $INFORMIXDIR 目录下创建 .rhosts 文件。
其次,在 Informix1 的 .rhosts 文件中添加它信任的机器名字或者 IP 也就是 : Informix0 或者 IP0,在 Informix0 的 .rhosts 文件中加它信任的机器名字或者 IP 也就是: Informix1 或者 IP1。
两台机器上都要保证 .rhosts 的权限为 600 否则该文件将被忽略,信任关系配置将失败。也就是要执行:
chmod 600 .rshosts


除了这些之外还要配置什么
参与2

2同行回答

liaosnetliaosnet信息分析/架构师gbasedbt.com
如2楼所说。。。用户名必须在对方存在。。BTW:如果是Linux系统。需要配置的是/etc/hosts.equiv,系统需要安装rshserver等,以保证用户可以rlogin方式访问对端。。显示全部
如2楼所说。。。用户名必须在对方存在。。

BTW:如果是Linux系统。需要配置的是/etc/hosts.equiv,系统需要安装rshserver等,以保证用户可以rlogin方式访问对端。。收起
IT咨询服务 · 2013-03-22
浏览991
忧愁绽放忧愁绽放系统工程师zznode
1、/etc/hoststangyi2#[/home/informix]cat /etc/hosts not remove the following line, or various programs# that require network functionality will fail.192.168.137.3 tangyi1192.168.137.4 tangyi2127.0.0.1       localhost.localdomain&n...显示全部
1、/etc/hosts
tangyi2#[/home/informix]cat /etc/hosts

not remove the following line, or various programs
# that require network functionality will fail.
192.168.137.3 tangyi1
192.168.137.4 tangyi2
127.0.0.1       localhost.localdomain   localhost
::1     localhost6.localdomain6 localhost6

两个机器都要有对应的/etc/hosts
2、/etc/hosts.equiv
tangyi2#[/home/informix]cat /etc/hosts.equiv
tangyi2
tangyi1

3、$INFORMIXDIR/etc/sqlhosts
ids115uc6       onsoctcp        192.168.137.3   20099
idstest         onsoctcp        192.168.137.4   20099
用户名必须存在在对方的机器,并且有connect权限收起
电信设备制造商 · 2013-03-22
浏览1136

提问者

jillme
CIO某大型银行

相关问题

问题状态

  • 发布时间:2013-03-22
  • 关注会员:0 人
  • 问题浏览:3776
  • 最近回答:2013-03-22
  • X社区推广