Loadrunner Controller 监控linux

来源:互联网 发布:好用的编程工具 编辑:程序博客网 时间:2024/06/05 15:11
上传tar -xzvf rpc.rstatd-4.0.1.tar.gzlibgssglue-0.1-11.el6.x86_64.rpm,libtirpc-0.2.1-11.el6_8.x86_64.rpm,rpcbind-0.2.0-12.el6.x86_64.rpm
安装rpcbind相关文件
 rpm -ivh libgssglue-0.1-11.el6.x86_64.rpm

[root@xx ~]# rpm -ivh libgssglue-0.1-11.el6.x86_64.rpm
warning: libgssglue-0.1-11.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:libgssglue             ########################################### [100%]

rpm -ivh libtirpc-0.2.1-11.el6_8.x86_64.rpm
[root@xx ~]# rpm -ivh libtirpc-0.2.1-11.el6_8.x86_64.rpm
warning: libtirpc-0.2.1-11.el6_8.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:libtirpc               ########################################### [100%]

rpm -ivh rpcbind-0.2.0-12.el6.x86_64.rpm
[root@xx ~]# rpm -ivh rpcbind-0.2.0-12.el6.x86_64.rpm
warning: rpcbind-0.2.0-12.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:rpcbind                ########################################### [100%]

至目标linux服务器
解压
tar -xzvf rpc.rstatd-4.0.1.tar.gz
[root@xx ~]# tar -zxvf 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
进入   rpc.rstatd-4.0.1/
cd  rpc.rstatd-4.0.1/
配置操作

./configure

[root@xx 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


进行编译

make

root@xx rpc.rstatd-4.0.1]# make
make  all-am
make[1]: Entering directory `/root/rpc.rstatd-4.0.1'
make[1]: Leaving directory `/root/rpc.rstatd-4.0.1'
[root@xx 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'


开始安装
make install

[root@xx 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'

./rpc.rstatd命令,启动服务


service rpcbind start

[root@cw rpc.rstatd-4.0.1]# service rpcbind start
正在启动 rpcbind:                                         [确定]



保证rpcinfo下 portmapper和rstatd接口都开启了

[root@cw rpc.rstatd-4.0.1]# rpcinfo -p
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100001    5   udp    685  rstatd
    100001    3   udp    685  rstatd
    100001    2   udp    685  rstatd
    100001    1   udp    685  rstatd

Loadrunner Controller 监控linux


 
0 0