Install Loadrunner load machine on linux

1. Download the Load Generator installation file: Linux.zip

   Link: https://pan.baidu.com/s/1kPpJY8IFeKB24DbMcH_t_g Password: jyee

2. Upload the downloaded file to Linux

3. Unzip Linux.zip, unzip Linux.zip

4. Change the permissions of all files under Linux, chmod 777 -R Linux/

5. Go to the Linux folder and run the installer.sh file

6. Start the LR load side:

   1) cd /opt/HP/HP_LoadGenerator/bin

   2)  ./verify_generator

   3) Enter csh prompt without this command, you need to install csh

   4) Install dependent packages: yum -y install glibc.i686

   5)yum -y install libstdc++.so.5

  6) Modify the /etc/csh.cshrc file

    vi /etc /csh.cshrc add source /opt/HP/HP_LoadGenerator/env.csh at the end of the file

   7) vi /opt/HP/HP_LoadGenerator/env.csh

 

Comment on line 9 and modify it to:

setenv LD_LIBRARY_PATH ${M_LROOT}/bin:${M_LROOT}/lib:/usr/lib

Add at the end of the file: setenv DISPLAY 0.0 (use: wq!)

8) Enter env and find HOSTNAME=xxxx

  Then enter hostname to view the value of hostname

[Note] If the value of env is different from the above, modify the hosts file

vi /etc/hosts Add xxxx after 127.0.0.1, which is the value of hostname= in env, for example:  

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 xxxxxx followed by xxxx

9) Add user: useradd -g 0 -s /bin/csh lr_test

10) Switch user: su lr_test

11) cd /opt/HP/HP_LoadGenerator/bin

         ./verify_generator

12) Start the LR load     side./m_daemon_setup start

 

7. Check whether the startup is successful: ps -ef | grep m_agent_daemon

   Turn off the firewall: service iptables stop

 8. Open the Controller side on Windows, create a scene, select the script to be executed, in Design mode, click Generators on the right, click Add in the pop-up small window, add a new Load Generator, and fill in the IP of linux in the name Address, at Platform, select UNIX, click more, under the Unix Environment tab, check the Don't use RSH item, click the "OK" button

 

9. On the Load Generators page, select the newly added load machine, click "Connect", the connection is successful

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324883296&siteId=291194637