???????????
????service nginx configtest # ??????????????????????????
????service nginx start
????ps -ef |grep nginx # ???nginx???????????worker?????????worker_processes????
????ss -antupl |grep 80 # ??????????????
???????????
???????????
??????β????????3?Σ??????????????
???????????е?Apache????event??MPM??????????Apache??????????
??????β???????????????????(httpd??nginx)????????β???????????
????????????webbench
?????????ab???????????????????????30000?????????

???????????

# ???wenbench
wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz
tar xf webbench-1.5.tar.gz
cd webbench-1.5
make && make install
# ????
webbench -c 100 -t 30 http://172.16.25.112/nginx.html # ?????????????
webbench -c 20 -t 30 http://172.16.25.112/test_mem.php # ?????????????
????????????

?????????????
???????????????????

???????????????????

???????
??????????????ó?????????????????
??????????????????????(200????)????£?Nginx??Apach???????????(2000pages/sec????)??????????????200???? Apache???????????????????Nginx??????????????????????????Apache??????????????ú???????????????????? ???Nginx???????ú?????????????????????????????
?????????????????????? (100????)????£?Nginx??Apache???????????(650pages/sec????)????Nginx???????ú?????????Apache?? 50%????????????????(100????)??Apach????????????????????????????500?????????????????????????????Apache ??????????????????Nginx??????????????????????????棬????????????????????????????????????????1000????????δ???????? ???????
??????????????????????????????????棬Nginx????????????????Apache?????????????????????????Apache??????????????Nginx??????????????????????????????????