« Configure the hangcheck-timer Kernel Module | 文摘首页 | 10条正确对待大脑的建议 »
Linux的rsh设置及no route to host解决
链接:https://www.eygle.com/digest/2007/12/linuxrshno-route-to-host.html
在多机集成环境中,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 hostIP、rsh hostName,如果成功登陆,则说明配置成功。如:rsh linux166或者rsh 128.64.96.166。
n 注意,时候虽然进行了上述的配置,但是仍然出现"No route to host"的错误?解决的方法:rsh、rlogin、rexec都使用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 |