zoukankan      html  css  js  c++  java
  • Linux装agent

     解压Linux.zip  Linux的负载机链接:https://pan.baidu.com/s/1yrmsT3PYfuL9Wlh4FEYxaA 密码:s72n

    unzip Linux.zip

    chmod 777 -R Linux/

    cd Linux

    sh installer.sh

    按提示依次输入如下:
    输入'n'

    输入'a'

    输入'n'

    输入'i'

    输入'f'

     如果没有安装csh shell,如果输入csh提示没有该命令,需要安装csh 

    yum -y install csh

    安装依赖包
    yum -y install glibc.i686

    yum -y install libstdc++.so.5

    vi /etc/csh.cshrc
    在文件的最后加上 
    source /opt/HP/HP_LoadGenerator/env.csh


    vi /opt/HP/HP_LoadGenerator/env.csh 
    将第9行注释,修改为:

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

    在文件的最后加上:
    setenv DISPLAY 0.0
    (保存的时候使用:wq!)

    输入env,然后找到 HOSTNAME=xxxx

    然后输入hostname,查看hostname的值,如果和上面env的值不一样,修改hosts文件

    vi /etc/hosts 把127.0.0.1 后面加上xxxx,也就是env中hostname=的值,例如:

    127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 xxxxxx
    在后面加上xxxx


    useradd -g 0 -s /bin/csh lr_test


    su lr_test


    cd /opt/HP/HP_LoadGenerator/bin

    ./verify_generator

     启动LR 负载端:

    cd /opt/HP/HP_LoadGenerator/bin

    ./m_daemon_setup start
    如果成功的话会提示:m_agent_daemon ( 进程的PID ),
    如果失败的话会提示:m_agent_daemon ( is down)解决方法参考http://blog.sina.com.cn/s/blog_62079f62010199vm.html的
    最后

    再次检查是否启动成功
    ps -ef | grep m_agent_daemon

     在windows上打开Controller端,

    建立场景, 选择要执行的脚本,在Design模式下,点击 右边的Generators,
    在弹出的小窗口中点击Add, 添加新的Load Generator, 
    在name处填写linux的IP地址,在Platform处,选择UNIX,
    点击more,在Unix Environment 标签下, 勾选Don't use RSH 项。
    点击 “OK”按钮,
    在Load Generators 页面中选择在刚添加的负载机上, 点击“Connect”, 连接成功

    出现问题解决方法:

    1、修复/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory问题 

    yum -y install glibc.i686

    2、/opt/HP/HP_LoadGenerator/bin/lrv/chk_thread_lmt: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

    yum -y install libstdc++.so.5

  • 相关阅读:
    词典 字符串+DP
    N 色球 数学
    loj6482. LJJ 爱数数
    loj2671. 「NOI2012」骑行川藏
    无标号生成树计数
    uoj272. 【清华集训2016】石家庄的工人阶级队伍比较坚强
    uoj328. 【UTR #3】量子破碎
    loj6402. yww 与校门外的树
    loj6674. 赛道修建
    06:MySQL分组查询子查询笔记6
  • 原文地址:https://www.cnblogs.com/mengmeng1011/p/9061558.html
Copyright © 2011-2022 走看看