Redhat

如何在 CentOS7 伺服器上安裝壓力?

  • May 30, 2019

如何在 CentOS 7 伺服器上安裝壓力?

我讀過這個,我有Package epel-release-7-7.noarch already installed and latest version。當yum search stress我得到:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.hostingxtreme.com
* epel: mirror.cs.pitt.edu
* extras: mirrors.umflint.edu
* updates: mirrors.greenmountainaccess.net
======================================================== N/S matched: stress ========================================================
httpress.x86_64 : HTTP stress & benchmark utility

這不是我要找的,手冊頁證實:

httpress - High performance HTTP server stress & benchmark utility.

如何在 centos7 無頭伺服器上安裝壓力工具?

它在舊的 EPEL 6 repo 列表。安裝:

rpm -ivh https://dl.fedoraproject.org/pub/epel/6/x86_64/stress-1.0.4-4.el6.x86_64.rpm
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install stress

引用自:https://serverfault.com/questions/791236