Linux下安装LoadRunner LoadGenerator
一、下载LoadRunner LoadGenerator 和 compat-libstdc++-33-3.2.3-61
二、安装compat-libstdc++-33-3.2.3-61,根据自己linux位数选择安装文件
[root@xiaoxitest opt]# rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm

yum install libstdc++.so.5
三、安装LoadRunner Generator
[root@xiaoxitest opt]# unzip LoadRunner_Generator_for_Linux.zip #解压缩
[root@xiaoxitest opt]# chmod -R 777 Linux/ #给Linux文件夹赋权
[root@xiaoxitest Linux]# ./installer.sh #安装
输入n继续安装

输入a同意用户协议

输入i开始安装

输入f完成安装
四、增加LR负载端用户
[root@xiaoxitest Linux]# useradd -g 0 -s /bin/csh loadrunner
五、修改LR配置
[root@xiaoxitest HP_LoadGenerator]# vim /etc/csh.cshrc
在文件的最后一行加上 source /opt/HP/HP_LoadGenerator/env.csh
[root@xiaoxitest bin]# vim /opt/HP/HP_LoadGenerator/env.csh
在文件最后加上 setenv DISPLAY 0.0

六、验证
[root@xiaoxitest HP_LoadGenerator]# su loadrunner #切换到loadrunner用户
[loadrunner@xiaoxitest HP_LoadGenerator]$ env
[loadrunner@xiaoxitest bin]$ cd /opt/HP/HP_LoadGenerator/bin/
[loadrunner@xiaoxitest bin]$ ./verify_generator

七、启动LR负载机
[loadrunner@xiaoxitest bin]$ cd /opt/HP/HP_LoadGenerator/bin
[loadrunner@xiaoxitest bin]$ ./m_daemon_setup start

启动报错,在/tmp下查看错误日志

查看当前shell主机名称是xiaoxitest,无法ping通


切换到root用户下,更改hosts配置,把xiaoxitest指向127.0.0.1

再次切换到loadrunner用户,重新运行程序,启动成功。
[root@xiaoxitest bin]# su loadrunner
[loadrunner@xiaoxitest bin]$ ./m_daemon_setup start
m_agent_daemon ( 4719 ),
[loadrunner@xiaoxitest bin]$
[loadrunner@xiaoxitest bin]$ ps -ef | grep m_agent_daemon #检查是否启动成功
附录:
浙公网安备 33010602011771号