溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

安裝siege壓力測(cè)試

發(fā)布時(shí)間:2020-06-16 10:49:10 來(lái)源:網(wǎng)絡(luò) 閱讀:369 作者:魔法貓 欄目:軟件技術(shù)

一,安裝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

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

二,測(cè)試siege

50個(gè)用戶(每次并發(fā)量,注意不是每秒并發(fā)量) 重復(fù)100次 共產(chǎn)生 50 * 100 = 5000個(gè)請(qǐng)求
/usr/local/siege/bin/siege -c 50 -r 100  https://www.google.com


向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI