1、linux判断rpc服务是否开启
linux5.x以下版本:
service protmap status
(running表示启动,stop关闭;无安装:安装protmap软件,通过service protmap start 启动)
linux6.0以上版本:
service rpcbind status
2、安装前提
安装portmap(centos7):
yum install portmap
安装portmap(Ubuntu):
apt-get install portmap
3、安装rpc
RPC安装包下载:下载rpchttp://sourceforge.net/projects/rstatd
1) 执行安装包
tar -xzvf rpc.rstatd-4.0.1.tar.gz //解压rcp.rstatd
cd rpc.rstatd-4.0.1 //进入到rpc.rstatd目录中
./configure //配置rc.rstatd的安装,以下我的是按照默认方式的
make //编译rc.rstatd
make install
2)启动rpc
./rpc.rstatd //启动rpc.rstatd进程
3)验证rpc是否启动成功
rpcinfo –p //执行此命令检查rpc服务的状态
展示以下服务表示已经开启,可以通过loadrunner进行添加监控。