文档详情

LoadGenerator在linux下安装与运行.doc

发布:2017-08-04约字共4页下载文档
文本预览下载声明
LoadGenerator在unix(linux)下的安装及运行Loadgenerator在unix和linux下的安装包可以在hp网站下到。安装难度应该不是很大,关键是安装完成后的环境变量设置,以及verify_generator. 安装完成后,/opt/HP/HP_LoadGenerator/会有一个env.csh。需要把它里面的环境变量加到.csh或.profile文件中。 ? For C shell users, the startup configuration file is the .cshrc file ? For Bourne and Korn shell users, the startup configuration file is the .profile file. 我当时是在linux,bash环境下,所以在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生效。 然后运行/opt/HP/HP_LoadGenerator/bin目录下的verify_generator 结果提示:[root@localhost bin]# ./verify_generator Environment variable M_LROOT must be set to the product directory in order for verify_generator to execute. Please setenv/export (csh/sh) it and run verify_generator again 通过[root@localhost bin]# env |grep PRODUCT_DIR 输出:exportT_DIR=/opt/HP/HP_LoadGenerator 于是尝试用切换到csh环境 [root@localhost bin]# csh 再次运行verify_generator 提示如下: [root@localhost bin]# ./verify_generator =================================================== HP Vuser Environment Verification Utility =================================================== Product: HP LoadRunner 9.50 Version: 09.50.0000 Build: 3378 verify_generator can not run as superuser, please login again 切换到普通用户: [root@localhost bin]# su lxj bash: /home/lxj/.bashrc: 权限不够 bash-3.1$ bash-3.1$ bash-3.1$ bash-3.1$ bash-3.1$ bash-3.1$ csh 再次运行verify_generator [lxj@localhost bin]$ ./verify_generator =================================================== HP Vuser Environment Verification Utility =================================================== Product: HP LoadRunner 9.50 Version: 09.50.0000 Build: 3378 localhost.localdomain: verify_generator...OK verify_generator...OK verify_generator...OK Warning: The file .rhosts does not exist in the home directory of the user. Verify $M_LROOT ...Failed _____It was not possible to set the $M_LROOT from _____the shell dot files. One of several things might
显示全部
相似文档