linux安装HP Load Generator 11.00记录

简介:

安装升级compat-libstdc++-33
步骤如下:

ast login: Wed Jan 10 15:21:01 2018 from 172.31.240.117
[root@bogon ~]# yum install compat-libstdc++-33
Loaded plugins: fastestmirror
base                                                                  | 3.6 kB  00:00:00     
epel/x86_64/metalink                                                  | 8.0 kB  00:00:00     
epel                                                                  | 4.7 kB  00:00:00     
extras                                                                | 3.4 kB  00:00:00     
updates                                                               | 3.4 kB  00:00:00     
(1/2): epel/x86_64/updateinfo                                         | 762 kB  00:00:12     
(2/2): epel/x86_64/primary_db                                         | 6.0 MB  00:00:54     
Loading mirror speeds from cached hostfile
 * base: mirrors.tuna.tsinghua.edu.cn
 * epel: mirror.dmmlabs.jp
 * extras: ftp.sjtu.edu.cn
 * updates: ftp.sjtu.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package compat-libstdc++-33.x86_64 0:3.2.3-72.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================
 Package                       Arch             Version                 Repository      Size
=============================================================================================
Installing:
 compat-libstdc++-33           x86_64           3.2.3-72.el7            base           191 k

Transaction Summary
=============================================================================================
Install  1 Package

Total download size: 191 k
Installed size: 811 k
Is this ok [y/d/N]: y
Downloading packages:
compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm                           | 191 kB  00:00:06     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : compat-libstdc++-33-3.2.3-72.el7.x86_64                                   1/1 
  Verifying  : compat-libstdc++-33-3.2.3-72.el7.x86_64                                   1/1 

Installed:
  compat-libstdc++-33.x86_64 0:3.2.3-72.el7                                                  

Complete!
You have new mail in /var/spool/mail/root
[root@bogon ~]# mkdir /opt/lr
[root@bogon ~]# cd /opt/lr/
[root@bogon lr]# yum -y install gcc gcc-c++ libstdc++.so.5
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.tuna.tsinghua.edu.cn
 * epel: mirror.dmmlabs.jp
….。。
Installed:
  compat-libstdc++-33.i686 0:3.2.3-72.el7                                                                                  gcc-c++.x86_64 0:4.8.5-16.el7_4.1                                                                                 

Dependency Installed:
  glibc.i686 0:2.17-196.el7_4.2                        libgcc.i686 0:4.8.5-16.el7_4.1                        libstdc++-devel.x86_64 0:4.8.5-16.el7_4.1                        nss-softokn-freebl.i686 0:3.28.3-8.el7_4                       

Updated:
  gcc.x86_64 0:4.8.5-16.el7_4.1                                                                                                                                                                                                              

Dependency Updated:
  cpp.x86_64 0:4.8.5-16.el7_4.1      glibc.x86_64 0:2.17-196.el7_4.2      glibc-common.x86_64 0:2.17-196.el7_4.2  glibc-devel.x86_64 0:2.17-196.el7_4.2       glibc-headers.x86_64 0:2.17-196.el7_4.2  libgcc.x86_64 0:4.8.5-16.el7_4.1 
  libgomp.x86_64 0:4.8.5-16.el7_4.1  libstdc++.x86_64 0:4.8.5-16.el7_4.1  nspr.x86_64 0:4.13.1-1.0.el7_3          nss-softokn-freebl.x86_64 0:3.28.3-8.el7_4 

Complete!
You have new mail in /var/spool/mail/root

下载LoadRunner Generator for Linux安装包
解压后:
给chmod 777 -R Linux/

#再次执行:
./installer.sh

Welcome to the HP Load Generator 11.00 Setup Wizard
-------------------------------------------------------------
This wizard will guide you through the steps required to install HP Load Generator 11.00 on the computer.

WARNING: This computer program is protected by copyright law and international treaties. Unauthorized duplication or distribution of this program, or any portion of it, may result in several civil
or criminal penalties, and will be prosecuted to the maximum extent possible under the law.

> To continue, select "Next"
> To abort the setup wizard, select "Cancel"

Select [ Next[n], Cancel[c] ] : n

------------------------

-------------------------------------------------------------
LICENSE AGREEMENT
-------------------------------------------------------------

Please take a moment to read the License Agreement, located in:
/opt/lr/Linux/sequencer/resources/EULA/EULA .

>To review the full License Agreement, select "View Agreement"
>To accept the agreement terms, select "Agree"
>To go back to the previous step, select "Back"
>To abort the setup wizard, select "Cancel"

Select: [ View Agreement[v], Agree[a], Back[b], Cancel[c] ] : a
----------------------------------------------------------------------

-------------------------------------------------------------
CONFIRMATION
-------------------------------------------------------------

The HP Load Generator 11.00 features you selected for installation are:

+LoadGenerator
 -LG-11.00-Linux2.6.rpm

Size:
 255856 KB

HP Load Generator 11.00 will be installed in the following directory:
/opt/HP/HP_LoadGenerator.

If you want to install HP Load Generator 11.00 in an alternative directory, you must create a symbolic link from "/opt/HP/HP_LoadGenerator" to the alternative directory before continuing with this installation.

> To start the HP Load Generator 11.00 installation, select "Install"
> To go back to the previous step, select "Back"
> To abort the setup wizard, select "Cancel"

Select [ Install[i], Back[b], Cancel[c] ]: i

-------------------------------------------------------------------

-------------------------------------------------------------
FINISH
-------------------------------------------------------------

HP Load Generator 11.00 has been successfully installed in the /opt/HP/HP_LoadGenerator directory

LOG FILE: Install log directory:
/var/log/26.07.17_17-28-09_HP_LoadGenerator_11.00.000_iHP_log.txt

> To complete the setup wizard, select "Finish"
> To view the output log, select "View Log"

Select [ Finish[f], View Log[v] ]: f
======================================================
elect [ Finish[f], View Log[v] ]: f
[root@localhost Linux]# useradd -g 0 -s /bin/bash loadrunner
[root@localhost Linux]# cd /opt/HP/HP_LoadGenerator
[root@localhost HP_LoadGenerator]# vim env.sh
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

[root@localhost HP_LoadGenerator]# vim /etc/profile 
source /opt/HP/HP_LoadGenerator/env.sh

[root@localhost HP_LoadGenerator]# 

出现错误:
[loadrunner@localhost HP_LoadGenerator]$ cd /opt/HP/HP_LoadGenerator/bin 
[loadrunner@localhost bin]$ ./m_daemon_setup start
Warning : MDRV: cannot find lrun root directory . Please check your M_LROOT
Unable to format message id [-10791]
m_agent_daemon ( is down ), 
[loadrunner@localhost bin]$ 

在root目录找到.bashrc文件,添加以下几句话: 

export PRODUCT_DIR=/opt/HP/HP_LoadGenerator 

export M_LROOT=$PRODUCT_DIR 

export LD_LIBRARY_PATH=${M_LROOT}/bin 

export PATH=${M_LROOT}/bin:$PATH 
需要注消再登录后bash生效。 

==================

[loadrunner@localhost bin]$ ./m_daemon_setup start
m_agent_daemon ( 29460 ), 
[loadrunner@localhost bin]$ 

linux安装HP Load Generator 11.00记录

点击 
linux安装HP Load Generator 11.00记录

使用已脚本运行:

    lr_start_transaction("dddd");

    lr_think_time(4);

    lr_output_message("好!!");

    lr_end_transaction("dddd", LR_AUTO);

提示:
Error: CCI compilation error -In file included from /tmp/brr_M1v0pM/global_dir/112991701/combined_WebHttpHtml43.c:4:
修改为:

    lr_start_transaction("dddd");

    lr_think_time(4);

    lr_output_message("good");

    lr_end_transaction("dddd", LR_AUTO);

提示::
The script <WebHttpHtml43> is from LoadRunner version <12.53.0.1203>. This does not match the load generator <192.168.47.196> version, <>. The script may not run properly on a load generator with an earlier or unidentified version.
结果:

linux安装HP Load Generator 11.00记录

查看linux:
top 显示
linux安装HP Load Generator 11.00记录










本文转自 知止内明 51CTO博客,原文链接:http://blog.51cto.com/357712148/2059957,如需转载请自行联系原作者
目录
相关文章
|
2月前
|
Linux
手把手教会你安装Linux系统
手把手教会你安装Linux系统
|
2月前
|
安全 关系型数据库 MySQL
Linux下安装mysql8.0(以tar.xz包安装--编译安装)
通过上述步骤,您完成了从下载、编译、安装到配置MySQL 8.0的全过程。此过程虽然较为复杂,但提供了对MySQL安装环境的完全控制,有助于满足特定的部署需求。在实际操作中,根据具体的系统环境,可能还需调整部分步骤或解决未预见的依赖问题。始终参考官方文档和社区资源,保持安装过程与最新版本的兼容性。
1003 67
|
26天前
|
NoSQL Linux PHP
如何在不同操作系统上安装 Redis 服务器,包括 Linux 和 Windows 的具体步骤
本文介绍了如何在不同操作系统上安装 Redis 服务器,包括 Linux 和 Windows 的具体步骤。接着,对比了两种常用的 PHP Redis 客户端扩展:PhpRedis 和 Predis,详细说明了它们的安装方法及优缺点。最后,提供了使用 PhpRedis 和 Predis 在 PHP 中连接 Redis 服务器及进行字符串、列表、集合和哈希等数据类型的基本操作示例。
49 4
|
2月前
|
Linux 测试技术 网络安全
Linux系统之安装OneNav个人书签管理器
【10月更文挑战第19天】Linux系统之安装OneNav个人书签管理器
116 5
Linux系统之安装OneNav个人书签管理器
|
2月前
|
监控 Java Linux
Linux系统之安装Ward服务器监控工具
【10月更文挑战第17天】Linux系统之安装Ward服务器监控工具
63 5
Linux系统之安装Ward服务器监控工具
|
1月前
|
存储 安全 数据管理
如何在 Rocky Linux 8 上安装和配置 Elasticsearch
本文详细介绍了在 Rocky Linux 8 上安装和配置 Elasticsearch 的步骤,包括添加仓库、安装 Elasticsearch、配置文件修改、设置内存和文件描述符、启动和验证 Elasticsearch,以及常见问题的解决方法。通过这些步骤,你可以快速搭建起这个强大的分布式搜索和分析引擎。
41 5
|
2月前
|
JSON JavaScript Linux
Linux系统之安装cook菜谱工具
【10月更文挑战第15天】Linux系统之安装cook菜谱工具
40 2
Linux系统之安装cook菜谱工具
|
2月前
|
Ubuntu Linux 测试技术
Linux系统之Ubuntu安装cockpit管理工具
【10月更文挑战第13天】Linux系统之Ubuntu安装cockpit管理工具
181 4
Linux系统之Ubuntu安装cockpit管理工具
|
2月前
|
Linux 网络安全 数据安全/隐私保护
Linux系统之Centos7安装cockpit图形管理界面
【10月更文挑战第12天】Linux系统之Centos7安装cockpit图形管理界面
102 1
Linux系统之Centos7安装cockpit图形管理界面
|
2月前
|
存储 Oracle 关系型数据库