1. 程式人生 > >linux實訓第三天--linux使用ab命令來對web網站進行壓力測試/DDOS攻擊

linux實訓第三天--linux使用ab命令來對web網站進行壓力測試/DDOS攻擊

ab -n 100 -c 10 http://127.0.0.1/index.html

-n requests     Number of requests to perform     要執行的請求數量
-c concurrency  Number of multiple requests to make at a time      一次進行多個請求的數目

所以意思就是  對http://127.0.0.1/index.html這個頁面進行100次請求     每個請求執行100個