Mac电脑用Homebrew安装JMeter遇到的坑
2021-10-12
1.brew install jmeter报错
Error: Failure while executing; `tar --extract --no-same-owner --file /Users/lihui/Library/Caches/Homebrew/downloads/5c3747825217c2c9c8a5d85317c57d52dec231f03cf8ea4dec18cb18ef84872e--openjdk-16.0.1.big_sur.bottle.tar.gz --directory /private/tmp/d20211012-1353-x2si5b` exited with 1. Here's the output:
tar: Error opening archive: Failed to open '/Users/lihui/Library/Caches/Homebrew/downloads/5c3747825217c2c9c8a5d85317c57d52dec231f03cf8ea4dec18cb18ef84872e--openjdk-16.0.1.big_sur.bottle.tar.gz'
解决:
替换homebrew-bottles(zsh工具🔧)
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc
接下来又报错:
Error: Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins
解决:
sudo chown -R $(whoami) $(brew --prefix)/*
成功安装
启动命令:
open /usr/local/bin/jmeter
启动发现是英文,对于咱英文不好的人来说还是看中文比较好
设置一下
然后发现每次启动的时候还是英文,这每次都要设置贼麻烦,改下默认设置
/usr/local/Cellar/jmeter/5.4.1/libexec/bin
找到自己安装的目录下找也到
更改jmeter.properties文件,在下面新增language=zh_CN就行
再次启动成功