1、loadrunner監控linux系統:
(linux系統必須安裝了rstatd服務,如果沒有就按下面的步驟安裝)service rstatd status
1)下裝rstatd包(http://sourceforge.net/projects/rstatd;)
2)安裝:
a、解壓 tar -zxvf rpc.rstatd-4.0.1.tar.gz
cd rpc.rstatd-4.0.1.tar.gz
./configure
make
make install
結束後,運行./rpc.rstatd命令,啟動服務
查看是否正常啟動,
rpcinfo -p 如果出現下面所示就表示成功了
備忘:在安裝過程中可能會出現下面的問題
1、系統沒有安裝gcc編譯器(gcc -v)
gcc編譯器安裝:gcc-4.7.0.tar.bz2
如果沒有安裝:下裝安裝
安裝過程中出現的問題(使用者獲得root許可權su):
no acceptable c compiler found in $PATH
裝yum install gcc
this system is not registored with RHM(該系統沒有有紅帽子註冊)
註冊紅帽子:
/root(su命令)
cd /etc/yum/repos.d
進入/etc/yum.repos.d/目錄,終端中輸入wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo即可在此目錄下得到CentOS- Base.repo檔案,這是centos的源檔案,只需將其重新命名為rhel-debuginfo.repo即可,以前的檔案做個備份。
2、no targets specified and no makefile fond stop
[
你如果要在redhat5編譯C/C++程式,你必須安裝以下的軟體包:
=> autoconf:configure用的
=> make/automake: make的主程式
=> GNU GCC C 編譯器(gcc) version 4.1: 編譯C的
=> GNU GCC C++ 編譯器 (gcc-c++): 編譯C++的
]
解決方案:
#yum install gcc gcc-c++ autoconf automake
3、開啟rpc服務(service rstatd start)
4、關閉linux防火牆[root@localhost ~]# /etc/init.d/iptables stop