Linux和macOS系统都支持在线安装。下面拿macOS做个举例
➜ brew search stress==> Formulaestress stress-ng➜ brew install stressUpdating Homebrew...==> Downloading https://homebrew.bintray.com/bottles/stress-1.0.4.catalina.bottle.t######################################################################## 100.0%==> Pouring stress-1.0.4.catalina.bottle.tar.gz /usr/local/Cellar/stress/1.0.4: 11 files, 76.9KB安装完成之后可以直接help➜ stress --help`stress' imposes certain types of compute stress on your systemUsage: stress [OPTION [ARG]] ... -?, --help show this help statement --version show version statement -v, --verbose be verbose -q, --quiet be quiet -n, --dry-run show what would have been done -t, --timeout N timeout after N seconds --backoff N wait factor of N microseconds before work starts -c, --cpu N spawn N workers spinning o