mkdir -p /backup/erikxue/;
cd /backup/erikxue;
yum -y install perl-Time-HiRes;
wget http://soft.laozuo.org/scripts/UnixBench5.1.3.tgz;
tar -zxvf UnixBench5.1.3.tgz;
cd UnixBench;
yum -y install gcc gcc-c autoconf gcc-c++ time
sed -i "s/GRAPHIC_TESTS = defined/#GRAPHIC_TESTS = defined/g" ./Makefile
make;
./Run;
echo ‘‘;
echo ‘‘;
echo ‘‘;
echo "======= Copy and paste your results to the Erikxue ======= ";
echo ‘‘;
echo ‘This script created by Erikxue from gorhce.com‘;
echo ‘‘;
echo ‘‘;
——————————————————————————————————————
把以上脚本复制到服务器上,直接运行即可。
运行脚本:
wget http://www.xxxxxx.com/sh/unixbench.sh;sh ./unixbench.sh
Erikxue 薛忠权原创技术文献;
本文出自 “奋斗在京(ErikXUE)” 博客,请务必保留此出处http://erikxue.blog.51cto.com/3681540/1770401
原文地址:http://erikxue.blog.51cto.com/3681540/1770401