linux安装HP Load Generator 11.00记录

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

ast login: Wed Jan 10 15:21:01 2018 from 172.31.240.117
[[email protected] ~]# 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
[[email protected] ~]# mkdir /opt/lr
[[email protected] ~]# cd /opt/lr/
[[email protected] 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
[[email protected] Linux]# useradd -g 0 -s /bin/bash loadrunner
[[email protected] Linux]# cd /opt/HP/HP_LoadGenerator
[[email protected] 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

[[email protected] HP_LoadGenerator]# vim /etc/profile
source /opt/HP/HP_LoadGenerator/env.sh

[[email protected] HP_LoadGenerator]# 

出现错误:
[[email protected] HP_LoadGenerator]$ cd /opt/HP/HP_LoadGenerator/bin
[[email protected] 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 ),
[[email protected] 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生效。 

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

[[email protected] bin]$ ./m_daemon_setup start
m_agent_daemon ( 29460 ),
[[email protected] bin]$ 

点击

使用已脚本运行:

    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:
top 显示

原文地址:http://blog.51cto.com/357712148/2059957

时间: 2024-11-10 15:24:02

linux安装HP Load Generator 11.00记录的相关文章

linux 安装mysql 5.6.11

tar zxvf mysql-5.6.11.tar.gz cd mysql-5.6.11 cmake . -DCMAKE_INSTALL_PREFIX=/home/mysql/ -DMYSQL_DATADIR=/home/mysql/data/ -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DWITH_INNOBASE_STORAGE_ENGINE=1 -DENABLED_LOCAL_INFILE=1 -DMYSQL_TCP_PORT=3306 -DEXTRA_CHAR

在 Linux 系统中安装Load Generator ,并在windows 调用

原文地址:http://www.blogjava.net/qileilove/archive/2012/03/14/371861.html 由于公司需要测试系统的最大用户承受能力,所以需要学习使用loadrunner.在安装的时候碰到了不少问题,所以写下此文章总结遇到的问题以及解决方案,希望能帮到大家.也希望大家转载注明出处. Winsows 的Loadrunner 安装就不多讲了,这个太容易了. 以下是Linux 中安装 Load Generator 说明: Linux 系统版本:CentOS

Linux安装jdk,编写helloworld程序

今天学习了Linux安装jdk,做个笔记记录一下. 第一步,确定Linux是32位的还是64位的,然后到oracle官网上下载对应版本的jdk,一般下载.tar.gz文件.查看Linux的版本的命令是:getconf LONG_BIT.如果得到是64,那么系统就是64位的:同理,就是32位的.本人装的是64位的,所以下载的是x64.tar.gz文件. 第二步,将下载好的jdk上传到Linux系统上.在Linux中按Alt+P进入到sftp中,然后使用put命令,把jdk上传到Linux系统上,如

Linux下安装load generator步骤及问题解决

Linux下安装load generator步骤及问题解决 上一篇 / 下一篇  2014-08-06 18:33:00 / 个人分类:loadrunner相关 查看( 146 ) / 评论( 0 ) / 评分( 0 / 0 ) 一.获取安装包 可在HP官网或其它途径获取资源.资源如下图所示 二.拷贝安装包到linux服务器下 在拷贝之前先解压获取到的安装包,解压后后生成一个文件夹,为了方便拷贝及在linux下的操作,我将解压后的文件夹打成了zip包. 使用SecureCPT工具将本地文件拷贝到

LoadRunner 11.00安装篇(Win 10)

参考博文: https://blog.csdn.net/xianjie0318/article/details/78625980 https://www.cnblogs.com/VseYoung/p/loadrunner-path4.html 以下是我实际安装重新梳理的操作过程,此篇只为记录.LoadRunner 11:00 安装包可以从上面的csdn博客获取,若原分享连接失效,有需要的朋友可以留言. 一.英文版安装 1.Software_HP_LoadRunner_11.00_T7177_15

Oracle Linux 6.3下安装Oracle 11g R2(11.2.0.3)

本文主要描述了在Oracle Linux 6.3下安装Oracle 11gR2(11.2.0.3).从Oracle 11g开始,Oracle官方网站不再提供其Patch的下载链接,需要使用Meatlink账户才可以进行下载.童鞋们不要着急,没有Metalink账户的也可以自己百度一下,网上有很多下载链接,迅雷就可以搞定了.Oracle 11.2.0.3整合为7个zip压缩包,如果仅仅是安装Oracle Database,下载1至2.zip包即可.下面是其安装步骤. 一.准备安装环境1.安装rpm

RedHat5.5_X64 Linux安装oracle 11.2.0.3 报错

REDHAT linux 安装 11G  11.2.0.3   报错 oracle用户执行./runinstaller后 直接报错 查看日志后 [[email protected] OraInstall2012-06-29_12-08-50AM]# more installActions2012-06-29_12-08-50AM.log  SEVERE: [FATAL] HXZG: HXZG. Refer associated stacktrace #oracle.install.commons

Arch Linux 安装 Mono 2.11.4 备忘录

从源代码编译 Mono 2.11.4 基本步骤如下所示: ~$ cd repo repo$ wget http://download.mono-project.com/sources/mono/mono-2.11.4.tar.bz2 repo$ tar xjf mono-2.11.4.tar.bz2 repo$ du -hs mono-2.11.4* 438M mono-2.11.4 40M mono-2.11.4.tar.bz2 repo$ cd mono-2.11.4 mono-2.11.4

linux安装MySQL记录

目录 linux安装MySQL记录 1. 在根目录下创建文件夹/software和数据库数据文件/data/mysql 2. 从官网下载相应的MySQL版本 3. 解压并移动到/software目录下 4. 创建mysql用户组和mysql用户 5. 关联myql用户到mysql用户组中 6. 更改文件夹的权限 7. 安装libaio依赖包 8. 初始化mysql命令 9. 修改Mysql配置文件 10. 启动MySQL服务 11. 登录mysql 12. 修改mysql的登录密码 13. My