Linux(centos6.4)下安装loadrunner generator

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/xiaoxiaonvwu/article/details/45092403
1.上传安装包ios文件(9.5)到/opt/soft/pack/路径下
cd /opt/soft/pack/

2.安装32位库
yum install glibc*.i686 
yum install compat-libstdc++-33.i686

3.将ios中文件拷贝出并赋权限
mkdir -p /mnt/cdrom;mkdir -p /opt/lr/
mount -o loop /opt/soft/pack/T7177-15009.iso /mnt/cdrom
cp -r /mnt/cdrom/Linux/ /opt/lr/
umount /mnt/cdrom/
cd /opt/lr/;chmod 777 -R Linux/;cd Linux

4.开始安装
sh installer.sh 
输入'n'
输入'a'
输入'i'
输入'f'

5.增加一个LR 负载端的客户端test
useradd -g 0 -s /bin/csh test
more /etc/passwd   //查看最后一行有新添加的用户

6.修改环境变量
vi /opt/HP/HP_LoadGenerator/env.csh
直接在文件最后方加上 setenv DISPLAY 0.0

vi /etc/csh.cshrc
在文件的最后一行加上 source /opt/HP/HP_LoadGenerator/env.csh  //将lr的配置导入csh的默认配置。

7.修改host
env|grep HOSTNAME   //查看hostname的值

当前shell下的环境变量,用上面命令查看主机名称(env中的HOSTNAME的值)。
切换到root下,更改hosts配置,把主机名称指向127.0.0.1(增加主机名称)
vi /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 test1
切换到test用户下,ping 主机名称,可以ping通表示配置成功。

8.环境检验
su test
env   //通root用户下相同即正确

 cd /opt/HP/HP_LoadGenerator/bin 
 ./verify_generator       //出现下面显示则是验证通过



9.启动
[test@test-kaifa bin]$ ./m_daemon_setup start    
m_agent_daemon ( 39905 ),                             //出现进程号则为启动成功,is down则未成功启动,参考日志。

 ps aux | grep m_agent_daemon    //查看进程

10.日志
错误log在/tmp 路径下,若未成功启动可查看



展开阅读全文

CentOS6.4安装metasploit

12-10

1.首先安装依赖工具rnrn[root@localhost ~]# yum --exclude=kernel* upgradern[root@localhost ~]# yum groupinstall 'Development Tools'rn[root@bogon ~]# yum install sqlite-devel libxslt-devel libxml2-devel java-1.7.0-openjdk libpcap-devel nano openssl-devel zlib-devel libffi-devel gdbm-devel readline-devel nano wget libpcap rnrnrn2.安装YAMLrnrn[root@bogon ~]# wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gzrn[root@bogon ~]# tar -zxvf yaml*tar.gzrn[root@bogon ~]# cd yaml-0.1.4rn[root@bogon yaml-0.1.4]# ./configure --prefix=/usr/localrn[root@bogon yaml-0.1.4]# make && make install rnrnrn3.安装ruby,使用rvm管理是最方便的rnrn[root@localhost ~]# curl -L https://get.rvm.io | bash //下载rvmrn[root@localhost ~]# source ~/.bashrcrn[root@localhost ~]# source ~/.bash_profilern[root@localhost ~]# rvm list knownrn# MRI Rubiesrn11.8.6[-p420]rn11.8.7[-p374]rn11.9.1[-p431]rn11.9.2[-p320]rn11.9.3[-p448]rn12.0.0-p195rn12.0.0[-p247]rn12.1.0-preview1rn12.1.0-headrnruby-headrn...rn[root@localhost ~]# rvm install 1.9.3rn[root@localhost ~]# rvm install ruby-1.9.2-p320rn[root@localhost ~]# rvm use 1.9.2 --default rnrnrn4.配置Postgresqlrnrn[root@bogon yaml-0.1.4]# gedit /etc/yum.repos.d/CentOS-Base.repornrn添加rnrn[base]rnname=CentOS-$releasever - Basernmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=osrn#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/rngpgcheck=1rngpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6rnrnexclude=postgresql* //添加的内容rn#released updates rn[updates]rnrn加载postgrsql官方源rnrn[root@localhost ~]# wget http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpmrn[root@localhost ~]# rpm -ivh pgdg*rpmrn[root@localhost ~]# yum updatern[root@localhost ~]# yum install postgresql92-server postgresql92-devel postgresql92rnrn开放端口,打开/etc/sysconfig/iptables,添加以下内容并重启iptablesrnrn-A INPUT -m state --state NEW -m tcp -p tcp --dport 5432 -j ACCEPTrnrn启动Postgresqlrnrn[root@localhost ~]# service postgresql-9.2 initdbrn[root@localhost ~]# service postgresql-9.2 startrn[root@localhost ~]# chkconfig postgresql-9.2 onrnrn添加环境变量rnrn[root@localhost ~]# echo export PATH=/usr/pgsql-9.2/bin:\$PATH >> /etc/bashrcrn[root@localhost ~]# source /etc/bashrcrnrn配置postgresql登录rnrn[root@localhost ~]# cd /var/lib/pgsql/9.2/data/rn[root@localhost data]# ls rnbase pg_ident.conf pg_serial pg_tblspc postgresql.confrnglobal pg_log pg_snapshots pg_twophase postmaster.optsrnpg_clog pg_multixact pg_stat_tmp PG_VERSION postmaster.pidrnpg_hba.conf pg_notify pg_subtrans pg_xlogrn[root@localhost data]# gedit pg_hba.confrnrn添加以下内容rnrn# "local" is for Unix domain socket connections onlyrn#local all all ident sameuserrnlocal all all trustrn# IPv4 local connections:rn#host all all 127.0.0.1/32 ident sameuserrnhost all all 127.0.0.1/32 md5rnrn配置postgrsqlrnrn[root@localhost ~]# su - postgres rn-bash-4.1$rnbash-4.1$ createuser msf -P -S -R -Drn为新角色输入的口令: rn再输入一遍: rnbash-4.1$ createdb -O msf msfrn-bash-4.1$ exitrnlogoutrnrn重启postgresql服务rn1rn[root@localhost data]# service postgresql-9.2 restartrn停止 postgresql-9.2 服务: [确定]rn启动 postgresql-9.2 服务: [确定]rn[root@localhost data]# rnrn5.环境配置好了,接下来是metasploit了rnrn[root@bogon metasploit]# yum install postgresql-develrn[root@localhost data]# gem install wirble pg sqlite3 msgpack activerecord redcarpet rspec simplecov yard pcaprub bundler rdoc railsrn[root@bogon ~]# cd /optrn[root@bogon opt]# rn[root@bogon opt]# git clone https://github.com/rapid7/metasploit-framework.git metasploitrn[root@bogon opt]# cd metasploitrn[root@bogon metasploit]# bash -c 'for MSF in $(ls msf*); do ln -s /opt/metasploit/$MSF /usr/local/bin/$MSF;done'rn[root@bogon metasploit]# ln -s /opt/metasploit/armitage /usr/local/bin/armitagern[root@bogon metasploit]# bundle installrn[root@bogon metasploit]# gedit /opt/metasploit/database.ymlrnrn添加以下内容rnrnproduction:rn adapter: postgresqlrn database: msfrn username: msfrn password: passwdrn host: 127.0.0.1rn port: 5432rn pool: 75rn timeout: 5rnrn配置环境变量rnrn[root@bogon metasploit]# echo export MSF_DATABASE_CONFIG=/opt/metasploit/database.yml >> /etc/bashrcrn[root@bogon metasploit]# source /etc/bashrcrnrnrn此条目发表在 metasploit 分类目录。将固定链接加入收藏夹。 论坛

没有更多推荐了,返回首页