安裝siege壓力測試

一,安裝siege

wget http://download.joedog.org/siege/siege-latest.tar.gz

tar -zxvf siege-latest.tar.gz
cd siege-3.0.0
./configure --prefix=/usr/local/siege --mandir=/usr/local/man --with-ssl=/usr/local/ssl
mkdir -p /usr/local/siege/etc/
mkdir -p /usr/local/siege/var/
make
make install

創建.siegec.config配置文件到當前用戶的家目錄下
/usr/local/siege/bin/siege.config
安裝完成

二,測試siege

50個用戶(每次併發量,注意不是每秒併發量) 重複100次 共產生 50 * 100 = 5000個請求
/usr/local/siege/bin/siege -c 50 -r 100  https://www.google.com


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章