一、LoadRunner实现监控Linux系统资源,需要在Linux中设置RPC服务
步骤:
1、下载一个安装包rpc.rstatd-4.0.1.tar.gz
2、把安装包解压到 /usr/local 下 (命令: tar zxvf rstatd.tar.gz ),也可以在windows下直接解压,然后把解压文件拷贝到 、usr/local下
3、进入 rpc.rstatd-4.0.1 目录 chomd 777 给予权限
4、使用./configure 进行配置(若有错误则使用 sh configure)
5、使用命令 make 进行编译安装包
6、使用命令 make install 安装
7、使用 rpc.rstatd 运行rstatd服务
二、安装xinetd
再次启动xinetd:[root@centoslocal]# tar -zxvf xinetd-2.3.14.tar.gz
[root@centos local]# cd xinetd-2.3.14
[root@centos xinetd-2.3.14]# sh configure
[root@centos xinetd-2.3.14]# make
[root@centosxinetd-2.3.14]# make install启动xinetd:[root@localhost mnt]# /etc/rc.d/init.d/xinetd start
[root@localhost mnt]# mkdir -p /mnt/lockdev
[root@localhost mnt]# /etc/rc.d/init.d/xinetd start
鍚姩 xinetd锛?[root@localhost mnt]# netstat -antp
查看是否安装rsh包:[root@localhost ~]rpm -aq |grep rsh
rsh-0.17-60.el6.x86_64
rsh-server-0.17-60.el6.x86_64
在root下使用yum install rsh 和 yum install rsh-server来自动安装。
(使用yum安装rsh-server的时候xinetd也会被自动安装)
配置:[root@centos ~]# cd /etc/xinetd.d/
rlogin rsh rexec三个文件的disable = yes更改为disable = no
所用:【vi命令】【insert按键】【修改(x键删除)】【esc按键】【:x】
备注:rstatd Rstat协议允许网络上的用户获得同一网络上各机器的性能参数
本文详细介绍如何通过LoadRunner监控Linux系统的资源使用情况,包括RPC服务的设置、xinetd安装与启动及rsh配置等关键步骤。
224

被折叠的 条评论
为什么被折叠?



