在所有期望运行 Loadrunner generator的主机中安装Linux generator的安装步骤
如下(以Loadrunner 9.5版本为例):
1. 在LR9.5_Linux安装包中找到installer.sh,赋予可执行权限,执行”sh install.sh”。如果在
执行过程中提示其他的相关文件无执行权限,请一一赋予权限后再执行。
默认情况下,此安装脚本将LoadRunner Generator安装在/opt/HP/HP_LoadGenerator目录下。
配置:
2. 切换到LoadRunner Generator程序的主目录,这里假设是/opt/HP/HP_LoadGenerator。在
此目录中新建一个文件名为so.bashrc的文件,在其中添加如下的内容:
[root@QA-APP-010 HP_LoadGenerator]# cat so.bashrc
export PRODUCT_DIR=/opt/HP/HP_LoadGenerator
export M_LROOT=$PRODUCT_DIR
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$M_LROOT/bin
export PATH=$PATH:$M_LROOT/bin
export DISPLAY=172.17.1.20:0.0
export DISPLAY
注:#将红色部分改成自己的IP地址,后面的’:0.0’不变
添加完成后,在命令行中执行”source so.bashrc”,然后进入/opt/HP/HP_LoadGenerator/bin目录,在bin目录下执行” ./m_daemon_setup -install”,如下所示:
[root@QA-APP-008 bin]# ./m_daemon_setup -install
m_agent_daemon ( 5563 ),
执行完成后,用”ps -ef |grep m_agent_daemon”命令检查HP LoadGenerator进程是否正常运行。如下所示:
[root@QA-APP-008 bin]# ps -ef |grep m_agent_daemon
root 5563 1 0 13:15 ? 00:00:00 m_agent_daemon -usr dat/br_lnch_server.usr -launcher_service -launcher_daemon -drv_log_under_temp m_agent_daemon -mdrv_log_type append -drv_log_num_backups 5
root 5569 5396 0 13:16 pts/4 00:00:00 grep m_agent_daemon