centos下安装Loadrunner

背景:

网上的资料呀,真是浑水摸鱼的多,有些人直接拷贝别人的帖子,这样有啥意思呢,只会让别人要搜索的时候,更扰乱些!

这里我不写步骤,我用shell把步骤弄了一下,看的懂的看,看不懂的留言吧。就酱,看不懂,我劝你找团队里能看懂的搞,分分钟的事。

#!bin/bash
###安装Lr
 
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export LANG=zh_CN.GB18030
 
 
 
`wget -q http://192.168.xx.xx/file/Package/Tools/LoadRunner Generator for Linux.zip -O - | tar -zxf -`
 
echo "安装文件规范:放在src目录下"
#执行解压
`unzip LoadRunner Generator for Linux.zip`
 
#进入目录执行installer.sh,在执行之前,需要给目录下所有sh赋予执行权限,不然会报错
file=`find /src/Linux/  -name "*.sh"`
for i in $file
do
        chmod +x $i
 
done
 
#执行installer.sh
`sh /src/Linux/installer.sh`
#按a -b-i根据提示安装,安装成功后调试
[root@v4 ~]# su - lr
[lr@v4 ~]$ cd /opt/HP/HP_LoadGenerator/
[lr@v4 HP_LoadGenerator]$ cd bin/
[lr@v4 bin]$ ./verify_generator 
===================================================
              HP
     Vuser Environment Verification Utility
===================================================
 
Product: LoadRunner 11.0 
Version: 11.0.0.8866 
Build: 8866  
 
 
verify_generator must have a DISPLAY set, please set and rerun
 
#启动,这里还是切换root启动吧,不然会连不了
[lr@v4 bin]$ ./m_daemon_setup start

LR下载地址:

https://download.csdn.net/download/sincool1003/10616880

 

posted @ 2018-08-21 10:34  sincoolvip  阅读(858)  评论(0编辑  收藏  举报