Centos下安装LoadRunner负载机

scp -r lr11_load_gennerators_linux/  root@192.168.10.113:/root/qumf/

scp -r root@192.168.12.13:/root/qumf/lr11_load_gennerators_linux/ /root/qumf/

chmod 755 lr11_load_gennerators_linux/*

cd lr11_load_gennerators_linux/

chmod -R 777 Linux/

./installer.sh

创建运行用户并配置环境变量

不知道为什么要创建运行用户,可能是为了安全考虑。 
1、创建用户 
useradd -g 0 -s /bin/bash loadrunner 

passwd loadrunner

123456


注意:这里用户名可以自行定义,使用bash或csh也都可以,只不过配置略有不同,以下以bash配置方式为例,在最后说明csh的配置方式。 


2、创建配置文件 


cd /opt/HP/HP_LoadGenerator 
vim env.sh

#/bin/bash
export PRODUCT_DIR=/opt/HP/HP_LoadGenerator
export M_LROOT=$PRODUCT_DIR
export LD_LIBRARY_PATH=$M_LROOT/bin:$M_LROOT/lib:/usr/lib:/usr/lib64
export DISPLAY='0.0'
export PATH=$PATH:$M_LROOT/bin

保存并退出。

 
3、将配置文件加载到/etc/profile中,以便开机、切换用户时都能自动加载: 
vim /etc/profile 
添加如下内容:

source /opt/HP/HP_LoadGenerator/env.sh

保存并退出。

 
4、退出当前shell并重新连接,切换loadrunner用户并查看环境变量 
su - loadrunner 
env

 

启动

cd /opt/HP/HP_LoadGenerator/bin 
./m_daemon_setup start

 

问题1:

[loadrunner@localhost bin]$ ./m_daemon_setup start

./m_daemon_setup: ./m_agent_daemon: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

【解决】:yum -y install glibc.i686

问题2:

[loadrunner@localhost bin]$ ./m_daemon_setup start

m_agent_daemon: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

【解决思路】:

yum -y install libstdc++.so.5
yum -y install libstdc++.i686* 
find / -name libstdc++.so* 
找到发现有libstdc++.so.5,在/usr/lib64/libstdc++.so.5中; 
修改上面的LD_LIBRARY_PATH,添加:/usr/lib64

ps -ef | grep m_agent_daemon

 

问题3:

解决方法:

问题解决:

 

 

1、首先,需要关闭linux主机的防火墙: 
systemctl stop iptables 
systemctl stop firewalld

打开Controller连接loadGenerator,选择UNIX和 don't use ssh即可。

解决办法:

http://blog.csdn.net/huangjin0507/article/details/51209066

http://blog.sina.com.cn/s/blog_62079f62010199vm.html

http://www.51testing.com/html/64/497364-864817.html

 

http://blog.csdn.net/huangjin0507/article/details/51209066?locationNum=11&fps=1

http://blog.csdn.net/gzh0222/article/details/17911963

http://blog.csdn.net/r455678/article/details/52944028

http://blog.sina.com.cn/s/blog_62079f6201019csl.html

http://blog.csdn.net/xiaoxiaonvwu/article/details/45092403

http://www.51testing.com/html/28/116228-249219.html

http://blog.csdn.net/saraul/article/details/12836407

https://wenku.baidu.com/view/cfa5e142a5e9856a57126005.html

http://blog.csdn.net/qiu5213173/article/details/46272893

http://www.linuxdiyf.com/linux/29204.html

http://blog.sina.com.cn/s/blog_9aa583cf0101bu4y.html

http://www.lai18.com/content/8438201.html

http://blog.csdn.net/nny715/article/details/7272223

http://www.cnblogs.com/huangmr0811/p/5570943.html

http://www.easytd.com/gongjufangfa/d_15123114580.html

 

posted @ 2017-05-10 16:59  Agoly  阅读(578)  评论(0编辑  收藏  举报