標籤:azure unixbench 安裝
話不多說,直接上詳細步驟:
首先,你得先有個WindowAzure的帳號;
建立一個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" />
選擇從庫中,標準鏡像。
從百度下載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做效能測試