RPC安装

 

 

 

1.1.1.      安装软件包

 

rpm –ivh

 

gcc-4.1.2-51.el5.x86_64.rpm

rsh-0.17-40.el5.x86_64.rpm

rsh-server-0.17-40.el5.x86_64.rpm

kernel-headers-2.6.18-274.el5.x86_64.rpm

 

操作如:

 

[root@dmsdb2 ~]# rpm -ivh kernel-headers-2.6.18-274.el5.x86_64.rpm

warning: kernel-headers-2.6.18-274.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing...                ########################################### [100%]

   1:kernel-headers         ########################################### [100%]

[root@dmsdb2 ~]#

 

1.1.2.      解压文件

 

[root@dmsdb2 ~]# tar -xvf rpc.rstatd-4.0.1.tar.gz

rpc.rstatd-4.0.1/

rpc.rstatd-4.0.1/README

rpc.rstatd-4.0.1/configure.in

rpc.rstatd-4.0.1/aclocal.m4

rpc.rstatd-4.0.1/Makefile.am

rpc.rstatd-4.0.1/Makefile.in

rpc.rstatd-4.0.1/config.h.in

rpc.rstatd-4.0.1/configure

rpc.rstatd-4.0.1/AUTHORS

rpc.rstatd-4.0.1/COPYING

rpc.rstatd-4.0.1/ChangeLog

rpc.rstatd-4.0.1/INSTALL

rpc.rstatd-4.0.1/depcomp

rpc.rstatd-4.0.1/install-sh

rpc.rstatd-4.0.1/missing

rpc.rstatd-4.0.1/mkinstalldirs

rpc.rstatd-4.0.1/rstat_svc.c

rpc.rstatd-4.0.1/rstat_xdr.c

rpc.rstatd-4.0.1/rstat_proc.c

rpc.rstatd-4.0.1/rstat_main.c

rpc.rstatd-4.0.1/getdata.c

rpc.rstatd-4.0.1/getdata22.c

rpc.rstatd-4.0.1/getdata24.c

rpc.rstatd-4.0.1/getdata26.c

rpc.rstatd-4.0.1/config.h

rpc.rstatd-4.0.1/getdata22.h

rpc.rstatd-4.0.1/getdata24.h

rpc.rstatd-4.0.1/getdata26.h

rpc.rstatd-4.0.1/getdata.h

rpc.rstatd-4.0.1/rstat_proc.h

rpc.rstatd-4.0.1/rsysinfo.c

rpc.rstatd-4.0.1/rstat_clnt.c

rpc.rstatd-4.0.1/rup.c

rpc.rstatd-4.0.1/rstat.x

rpc.rstatd-4.0.1/rpc.rstatd.8

rpc.rstatd-4.0.1/rstatd.8

rpc.rstatd-4.0.1/rsysinfo.1

rpc.rstatd-4.0.1/rup.1

 

 

1.1.3.      配置、编译、安装、启动

 

第一步,配置

[root@dmsdb2 ~]# cd rpc.rstatd-4.0.1

[root@dmsdb2 rpc.rstatd-4.0.1]# ./configure

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

/root/rpc.rstatd-4.0.1/missing: Unknown `--run' option

Try `/root/rpc.rstatd-4.0.1/missing --help' for more information

configure: WARNING: `missing' script is too old or missing

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking for gawk... (cached) gawk

checking for gcc... gcc

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc accepts -g... yes

checking for gcc option to accept ANSI C... none needed

checking for style of include used by make... GNU

checking dependency style of gcc... gcc3

checking for a BSD-compatible install... /usr/bin/install -c

checking whether ln -s works... yes

checking whether make sets $(MAKE)... (cached) yes

checking how to run the C preprocessor... gcc -E

checking for egrep... grep -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking sys/ioctl.h usability... yes

checking sys/ioctl.h presence... yes

checking for sys/ioctl.h... yes

checking syslog.h usability... yes

checking syslog.h presence... yes

checking for syslog.h... yes

checking whether time.h and sys/time.h may both be included... yes

checking whether gcc needs -traditional... no

checking for ANSI C header files... (cached) yes

checking return type of signal handlers... void

configure: creating ./config.status

config.status: creating Makefile

config.status: creating config.h

config.status: config.h is unchanged

config.status: executing depfiles commands

[root@dmsdb2 rpc.rstatd-4.0.1]#

 

第二步,编译:

 

 

第三步,安装:

 

[root@dmsdb2 rpc.rstatd-4.0.1]# make install

make  install-am

make[1]: Entering directory `/root/rpc.rstatd-4.0.1'

make[2]: Entering directory `/root/rpc.rstatd-4.0.1'

test -z "/usr/local/bin" || mkdir -p -- . "/usr/local/bin"

  /usr/bin/install -c 'rup' '/usr/local/bin/rup'

  /usr/bin/install -c 'rsysinfo' '/usr/local/bin/rsysinfo'

test -z "/usr/local/sbin" || mkdir -p -- . "/usr/local/sbin"

  /usr/bin/install -c 'rpc.rstatd' '/usr/local/sbin/rpc.rstatd'

make[2]: Nothing to be done for `install-data-am'.

make[2]: Leaving directory `/root/rpc.rstatd-4.0.1'

make[1]: Leaving directory `/root/rpc.rstatd-4.0.1'

[root@dmsdb2 rpc.rstatd-4.0.1]#

 

第四步:启动:

 

[root@dmsdb2 rpc.rstatd-4.0.1]# rpc.rstatd

 

第五步,验证:


 

[root@dmsdb2 rpc.rstatd-4.0.1]# /usr/sbin/rpcinfo -p

 

   program vers proto   port

    100000    2   tcp    111  portmapper

    100000    2   udp    111  portmapper

    100024    1   udp    907  status

    100024    1   tcp    910  status

    100001    5   udp    618  rstatd

    100001    3   udp    618  rstatd

    100001    2   udp    618  rstatd

    100001    1   udp    618  rstatd

[root@dmsdb2 rpc.rstatd-4.0.1]#

[root@dmsdb2 rpc.rstatd-4.0.1]#

 

 

注:由上面可知rstatd进行已经跑起

 

1.1.4.      监控检查

 

 

 

 

注:由上可知已经配置成功。

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值