您的位置:首页 > 运维架构 > Linux

使用LoadRunner实现对Linux系统的监视

2012-02-17 19:44 399 查看
1.安装rsh,和rsh-server两个服务包。

a. 卸载rsh

# rpm –q rsh----------查看版本号

# rpm -e 版本号---------卸载该版本。

B.安装

# rpm –ivh rsh-0.17-14.i386.rpm rsh-server-0.17-14.i386.rpm

2. 下载并安装rstatd

# tar –xzvf rpc.rstatd-4.0.1.tar.gz

# ./configure ---配置

# make ---编译

# make install ---安装

# rpc.rstatd ---启动rstatd进程

3.打开/etc/xinetd.conf

里面内容是:

# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
    instances        = 60
    log_type        = SYSLOG authpriv
    log_on_success        = HOST PID
    log_on_failure        = HOST
    cps            = 25 30
 }
 includedir /etc/xinetd.d4.重启xinetd:

A:
# service xinetd reload
B:
# /sbin/service xinetd rstart

5. 修改/etc/xinetd.d/下的三个conf文件

rlogin ,rsh,rexec 这三个配置文件,

打这三个文件,将里面的disable = yes都改成 disable = no ( disabled 用在默认的 {} 中 禁止服务)

或是把# default: off都设置成 on ,并把“#”去掉,这个的意思就是在xinetd启动的时候默认都启动上面的三个服务!

6.启动rstatd:

# rpc.rstatd

在启动rpc.rstatd时,会报错“Cannot register service: RPC: Unable to receive; errno = Ction refused”。

解决方法如下:

# /etc/init.d ./portmap start

# /etc/init.d ./nfs start

然后再次启动rpc.rstatd就好了。

7.查看rstatd是否启动:

# rpcinfo -p

如果能看到:

100001  5  udp  892 rstatd
  100001  3  udp  892 rstatd
  100001  2  udp  892 rstatd
  100001  1  udp  892 rstatd就说明rstatd服务已经启动。可以用LR去监视了。

本文来自编程入门网:http://www.bianceng.cn/OS/Linux/201201/33345_2.htm
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: