eygle.com   eygle.com
eygle.com eygle
eygle.com  
 

« Configure the hangcheck-timer Kernel Module | 文摘首页 | 10条正确对待大脑的建议 »

Linux的rsh设置及no route to host解决
modb.pro

在多机集成环境中,Server将根据环境的配置与域内的Client协同工作,机制为rsh调用。所以必须对rsh配置。步骤如下:

n         编辑.rhosts。使用集成环境的用户登陆Server服务器,在集成环境的用户根目录下打开.rhost文件。编辑该文件,该文件的格式为:第一列为ETL域内服务器的IP,第二列为登陆的用户名。编辑之后保存。将该文件的属性修改为600$chmod 600 .rhosts ,注意如果其他属性,将无法正常访问。如:128.64.96.166 ccb

n         编辑/etc/hosts。使用root用户对该文件进行编辑。将.rhosts内涉及的所有 Client的服务器全部设置在内。

n         测试rsh。用集成环境的用户登陆到集成环境的ETL调度节点,执行rsh hostIPrsh hostName,如果成功登陆,则说明配置成功。如:rsh linux166或者rsh 128.64.96.166

n         注意,时候虽然进行了上述的配置,但是仍然出现"No route to host"的错误?解决的方法:rshrloginrexec都使用513端口来连接服务器,这种错误的常见原因是因为rsh服务器上运行防火墙组织了513端口导致的。这时候可以关闭防火墙,关闭防火墙的命令: Setup firewall service ->disable

问题       在集群的所有节点都已经配置好了.rhosts/etc/hosts的信息,并且rsh服务已经打开,防火墙已经关闭。rsh hostname已经通过测试,但是使用rsh hostname  rcmd 来执行命令,未能通过。出现no route to host错误。

 

解决       使用root登陆,到/etc/selinux下修改config,修改之后的信息如下:

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#       enforcing - SELinux security policy is enforced.

#       permissive - SELinux prints warnings instead of enforcing.

#       disabled - SELinux is fully disabled.

SELINUX=disabled  //修改点

# SELINUXTYPE= type of policy in use. Possible values are:

#       targeted - Only targeted network daemons are protected.

#       strict - Full SELinux protection.

SELINUXTYPE=targeted 

,然后重起rsh,如果还不行,那么重起机器。

注意:在集成环境中所以机器都需要配置。


历史上的今天...

By eygle on 2007-12-19 16:43 | Comments (5) | 学习资料 | 1713 |


CopyRight © 2004~2020 云和恩墨,成就未来!, All rights reserved.
数据恢复·紧急救援·性能优化 云和恩墨 24x7 热线电话:400-600-8755 业务咨询:010-59007017-7040 or 7037 业务合作: marketing@enmotech.com