Rexec server for JIAJIA

来源:互联网 发布:rbq网络用语什么意思 编辑:程序博客网 时间:2024/06/03 10:42

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

rshrloginrexec

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/linuxsudo makecd ../
sudo vim /etc/hosts192.168.3.160 xzl-test-second-vm
vim .jiahostsxzl-test-first-vm  root  123456xzl-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-vmDEBUG:hosts[1].user=root hosts[1].passwd=123456Poll host 1: stream    3----ok? Host    1 arrives!End of InitializationMap 0x2000 bytes in home    0! globaladdr = 0x0















原创粉丝点击