Rexec server for JIAJIA

0 Reference

http://www.cxybl.com/html/linux/Ubuntu/201111128490.html

http://zyc1006.iteye.com/blog/1252310

http://www.mkssoftware.com/docs/man1/rexecd.1.asp

http://rich.phekda.org/richdawe/lsck/doc/lsck.htm#rexec

http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Fapis%2Frexec.htm

http://www.centos.org/docs/2/rhl-rg-en-7.2/s1-pam-rexec.html

1 Acknowledge 

Host 0 master node (xzl-test-first-vm  192.168.3.159  root 123456 )

Host 1 slave node (xzl-test-second-vm 192.168.3.160 root 123456)


On Host 1(slave node)

sudo apt-get install rsh-server 
sudo apt-get install xinetd 
sudo apt-get install chkconfig

sudo vim /etc/hosts

192.168.3.159 xzl-test-first-vm

sudo vim /etc/hosts.equiv

xzl-test-first-vm root
xzl-test-first-vm xzl

Allow the root@xzl-test-first-vm andxzl@xzl-test-first-vm to  cmmand access to your system.

 

sudo vim /root/.rhosts

xzl-test-first-vm root

sudo vim /home/xzl/.rhosts

xzl-test-first-vm xzl

 

sudo vim /etc/securetty

rsh
rlogin
rexec

vim /etc/xinetd.d/rsh # Create it if it is not exist

# default: on
# descrīption: The rshd server is the server for the rcmd(3) routine and, \
#       consequently, for the rsh(1) program.  The server provides \
#       remote execution facilities with authentication based on \
#       privileged port numbers from trusted hosts.
service shell
{
        disable = no
        socket_type             = stream
        wait                    = no
        user                    = root
        log_on_success          += USERID
        log_on_failure          += USERID
        server                  = /usr/sbin/in.rshd
}


vim /etc/xinetd.d/rlogin

# default: on
# descrīption: rlogind is the server for the rlogin(1) program.  The server \
#       provides a remote login facility with authentication based on \
#       privileged port numbers from trusted hosts.
service login
{
        disable = no
        socket_type             = stream
        wait                    = no
        user                    = root
        log_on_success          += USERID
        log_on_failure          += USERID
        server                  = /usr/sbin/in.rlogind
}

vim /etc/xinetd.d/rexec

# default: on
# descrīption: Rexecd is the server for the rexec(3) routine.  The server \
#       provides remote execution facilities with authentication based \
#       on user names and passwords.
service exec
{
        disable = no
        socket_type             = stream
        wait                    = no
        user                    = root
        log_on_success          += USERID
        log_on_failure          += USERID
        server                  = /usr/sbin/in.rexecd
}
/etc/init.d/xinetd restart

On Host 0 (master node)

sudo apt-get install rsh-client

cd JIA/lib/linux 
sudo make

cd JIA/apps/pi/linux
sudo make
cd ../
sudo vim /etc/hosts
192.168.3.160 xzl-test-second-vm
vim .jiahosts
xzl-test-first-vm  root  123456
xzl-test-second-vm root 123456


./pi/linux

root@xzl-test-first-vm:/home/xzl/Nahanni+/JIA/apps/pi# ./pi.linux 

***JIAJIA---Software DSM***
***  Cachepages = 1024  Pagesize=8192***

DEBUG:get into jia_init
*********Total of 2 hosts found!**********

******Start to copy system files to slaves!******
Copy files to root@xzl-test-second-vm.
root@xzl-test-second-vm's password: 
.jiahosts                                                                                                                   100%   63     0.1KB/s   00:00    
root@xzl-test-second-vm's password: 
pi.linux                                                                                                                    100%   79KB  78.9KB/s   00:01    
Remote copy succeed!

******Start to create processes on slaves!******

Starting CMD ~root/./pi.linux -P28304  on host xzl-test-second-vm
DEBUG:hosts[1].user=root hosts[1].passwd=123456
Poll host 1: stream    3----ok? Host    1 arrives!
End of Initialization
Map 0x2000 bytes in home    0! globaladdr = 0x0















评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值