man clearmake一下,
找到
-B bldhost-file
Uses bldhost-file as the build hosts file for a parallel build.
If you do not specify -B, clearmake uses the file
.bldhost.$CCASE_HOST_TYPE in your home directory. When you use
-B, you must also use -J or have the CCASE_CONC environment
variable set. For more information, see the Building Software.
于是去找"IBM Rational ClearCase Guide to Building Software"
又找到
Setting up trust relationships
For parallel building to work correctly, the client host must be trusted by the build hosts (that is, remote login from the client host to the build hosts must work without a password being needed). You can set up this trust with .rhosts files on the hosts, or by having your system administrator set up general trust (for example, with /etc/hosts.equiv). To test remote login, execute the following command (substituting your ClearCase installation directory for ccase–home–dir):
ccase–home–dir/etc/rsh remote-hostname echo Good-to-use
看了看,无非就是主服务器跟slave机器建立互信。需要在slave的主机上修改.rhost(+ 需要建立互信的用户名)和 /etc/hosts.equiv (需要建立互信的主机名列表,不写就会出现Permission denied)
好了,去主服务器上执行rsh slave的主机名 echo hello,结果Connection refused。
执行了下netstat -a -n | grep LISTEN
发现 tcp 端口 514(rsh) 和 513(rlogin) 没有开。
将/etc/xinetd.d/rsh 和/etc/xinetd.d/rlogin中disable修改成no, 并通过/etc/init.d/xinetd restart重启后就OK了
建立分布编译的最后一步就是在主服务器的HOME目录下,创建bldhost-file,内容格式可以去以上链接中找。