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
三、安装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 #检查是否启动成功
附录:
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库