如何在Windows Azure裡安裝並使用Unix bench做效能測試

來源:互聯網
上載者:User

標籤:azure unixbench 安裝

話不多說,直接上詳細步驟:

  1.   首先,你得先有個WindowAzure的帳號

  2. 建立一個Linux的虛擬機器,本次我們使用CentOS6.5 A4的機器

    650) this.width=650;" src="http://s4.51cto.com/wyfs02/M01/7A/18/wKiom1aiBdbz_SZ-AAIp9g6w07Y204.png" style="float:none;" title="1.png" alt="wKiom1aiBdbz_SZ-AAIp9g6w07Y204.png" />

    選擇從庫中,標準鏡像。

  3.  從百度下載PuTTY工具,開啟PuTTY

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/7A/17/wKioL1aiBiGhkVPGAADF-oJfa_4039.png" style="float:none;" title="2.png" alt="wKioL1aiBiGhkVPGAADF-oJfa_4039.png" />

4,  在PuTTY裡面輸入剛建立機器的公網IP地址,那麼如何找到剛剛的機器IP地址(公網)呢?

650) this.width=650;" src="http://s1.51cto.com/wyfs02/M00/7A/18/wKiom1aiBe3RIIoFAAGHyW_6jRo933.png" style="float:none;" title="3.png" alt="wKiom1aiBe3RIIoFAAGHyW_6jRo933.png" />

進入首頁面,點擊虛擬機器,選中剛剛的機器。

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/7A/18/wKiom1aiBfeBhLgeAADK-Mlv2Kw162.png" style="float:none;" title="4.png" alt="wKiom1aiBfeBhLgeAADK-Mlv2Kw162.png" />

點擊儀表板,右手邊中間就是公網IP啦~記下來輸入到PuTTY裡面,然後點擊“OPEN”。

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/7A/18/wKiom1aiBf-hdUbvAACn7L7KBic791.png" style="float:none;" title="5.png" alt="wKiom1aiBf-hdUbvAACn7L7KBic791.png" />


5,PuTTY開始串連你的虛擬機器。輸入你的使用者名稱和密碼。直接輸入即可。

650) this.width=650;" src="http://s1.51cto.com/wyfs02/M02/7A/17/wKioL1aiBj-SSNvRAAARJgxgws8282.png" style="float:none;" title="6.png" alt="wKioL1aiBj-SSNvRAAARJgxgws8282.png" />

6,  登陸成功啦~~

敲入命令sudo wgethttp://byte-unixbench.googlecode.com/files/unixbench-5.1.2.tar.gz
tar xvfzunixbench-5.1.2.tar.gz
cd unixbench-5.1.2

650) this.width=650;" src="http://s4.51cto.com/wyfs02/M01/7A/17/wKioL1aiBkDjXlfAAAAkc8nTZ74510.png" style="float:none;" title="7.png" alt="wKioL1aiBkDjXlfAAAAkc8nTZ74510.png" />

7,敲入sudo sh test.sh 在虛機裡面建立文字文件。

650) this.width=650;" src="http://s5.51cto.com/wyfs02/M01/7A/17/wKioL1aiBkPRtbMNAAAJ8C4vkXA442.png" style="float:none;" title="8.png" alt="wKioL1aiBkPRtbMNAAAJ8C4vkXA442.png" />


8,建立成功後,就是最後一步啦·

直接敲入

#!/bin/bash

 

 

# CentOS 7.0, root privilege

 

 

 

yum install -y perl-Time-HiRes # for centos6.5

yum install -y gcc yum-plugin-prioritiesgit

yum install -yhttp://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

git clonehttps://github.com/kdlucas/byte-unixbench.git

cd byte-unixbench/UnixBench/

make

./Run | tee ../../UnixBench.txt

cd ../..

 

 

yum install -y fio

fio --filename=/dev/vdc --direct=1--rw=read --ioengine=psync --size=100%

--bs=1024k --runtime=30 --group_reporting--name=read | tee

io-throughput-read.txt

fio --filename=/dev/vdc --direct=1--rw=write --ioengine=psync --size=100%

--bs=1024k --runtime=30 --group_reporting--name=write | tee

io-throughput-write.txt

fio --filename=/dev/vdc --direct=1 --ioengine=libaio--iodepth=32 --thread

--numjobs=1 --rw=randread --bs=4k--size=100% --runtime=30s --group_reporting

--name=randread | tee io-random-read.txt

fio --filename=/dev/vdc --direct=1--ioengine=libaio --iodepth=32 --thread

--numjobs=1 --rw=randwrite --bs=4k--size=100% --runtime=30s --group_reporting

--name=randwrite | tee io-random-write.txt

 

緊接著就是漫長的等待

650) this.width=650;" src="http://s4.51cto.com/wyfs02/M02/7A/18/wKiom1aiBgaR4rBwAABHzprZ07c543.png" style="float:none;" title="9.png" alt="wKiom1aiBgaR4rBwAABHzprZ07c543.png" />


本文出自 “11142118” 部落格,轉載請與作者聯絡!

如何在Windows Azure裡安裝並使用Unix bench做效能測試

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.