i had solve the problem , but a new problem appeared. KAO!
i found the reason of this problem was i exec "securetcpip" command before. securetcpip command forbidden rsh, rlogin, rcp etc. i solve the problem with the following steps.
================================================
root:
chmod 555 /usr/sbin/rshd
chmod u+s /usr/sbin/rshd
chmod 555 /usr/bin/rlogin
stopsrc -s inetd
startsrc -s inetd
echo "+" >/.rhosts
chmod 600 /.rhosts
db2inst1:
echo "+" >/.rhosts
chmod 600 /.rhosts
===============================================
then i can "db2start" the db2 server.
but i fall across a new problem.
when i use "rsh" and "db2_all" command test the rshd process. root can exec exactly,but user "db2inst1" (the nodes owner) cann't exec exactly. how can i solve it , thanks.
==============================================
root:/>rsh localhost echo hi
hi
root:/>db2_all echo hi
hi
IBM270: echo hi completed ok
hi
IBM270: echo hi completed ok
================================================
db2inst1:/home/db2inst1>rsh localhost echo hi
rcmd2: socket: The file access permissions do not allow the specified action.
db2inst1:/home/db2inst1>db2_all echo hi
rcmd2: socket: The file access permissions do not allow the specified action.
rcmd2: socket: The file access permissions do not allow the specified action.
db2inst1:/home/db2inst1>
================================================== =====