Mac下载并安装Jmeter测压工具(详细教程)

1,422次阅读
没有评论

简介:JMeter是一款用于性能测试的开源工具,它最初由Apache开发,是一个基于Java的压力测试工具,用于对Web应用程序进行性能和负载测试。它最初由Apache开发,是一个基于Java的压力测试工具压力测试工具,用于对Web应用程序进行性能和负载测试。JMeter可用于测试静态和动态资源,例如静态网页、动态网页、Servlet、Java Applet、CGI脚本、Java程序等。它还可以模拟不同的用户负载并检查系统的负载能力。

一、Jmeter下载
下载地址:

最新版本:https://jmeter.apache.org/download_jmeter.cgi
历史版本: https://archive.apache.org/dist/jmeter/binaries/

下载完解压安装到自己想放的位置(要记得自己安装在哪里)
我这里用5.2.1版本测试安装

二、Jmeter安装

  1. 启动方式1【推荐】
    可以终端直接输入jmeter启动,需先进行配置,配置步骤如下:

1.1 配置环境
终端输入vim ~/.bash_profile进入到vim编辑器,输入i进入编辑模式,以下命令:
export JMETER_HOME=/Library/Environment/apache-jmeter-5.2.1 #注意这个需要换成自己的安装地址
export PATH=$JAVA_HOME/bin:$PATH:.:$JMETER_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JMETER_HOME/lib/ext/ApacheJMeter_core.jar:$JMETER_HOME/lib/jorphan.jar:$JMETER_HOME/lib/logkit-2.0.jar

按下esc退出编辑模式,输入:wq保存并退出
继续在终端中输入source ~/.bash_profile,使配置文件在修改后立即生效
终端输入jmeter即可启动
1.2 设置中文
打开软件后点击Option-Choose Language-Chinese(Simplified)

设置完成后,重启Jmeter,会发现语言又变成了英文。
所以需要修改Jmeter配置文件内的默认语言为英文,即安装目录/apache-jmeter-5.4/bin/jmeter.properties这个文件。
打开修改language=zh_CN

Preferred GUI language. Comment out to use the JVM default locale’s language.

language=en

language=zh_CN

  1. 启动方式2
    终端进入jmeter的bin文件路径后,执行 sh jmeter即可启动
正文完
可以使用微信扫码关注公众号(ID:xzluomor)
post-qrcode
 0
评论(没有评论)

文心AIGC

2024 年 8 月
 1234
567891011
12131415161718
19202122232425
262728293031  
文心AIGC
文心AIGC
人工智能ChatGPT,AIGC指利用人工智能技术来生成内容,其中包括文字、语音、代码、图像、视频、机器人动作等等。被认为是继PGC、UGC之后的新型内容创作方式。AIGC作为元宇宙的新方向,近几年迭代速度呈现指数级爆发,谷歌、Meta、百度等平台型巨头持续布局
文章搜索
热门文章
手把手教你用AI 10分钟生成一个APP!零基础也能搞定

手把手教你用AI 10分钟生成一个APP!零基础也能搞定

今日,我将向大家展示DeepSeek的全新玩法——从零开始,利用AI创建一个完整的应用程序。借助DeepSee...
最新评论
ufabet ufabet มีเกมให้เลือกเล่นมากมาย: เกมเดิมพันหลากหลาย ครบทุกค่ายดัง
tornado crypto mixer tornado crypto mixer Discover the power of privacy with TornadoCash! Learn how this decentralized mixer ensures your transactions remain confidential.
ดูบอลสด ดูบอลสด Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
ดูบอลสด ดูบอลสด Pretty! This has been a really wonderful post. Many thanks for providing these details.
ดูบอลสด ดูบอลสด Pretty! This has been a really wonderful post. Many thanks for providing these details.
ดูบอลสด ดูบอลสด Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.
Obrazy Sztuka Nowoczesna Obrazy Sztuka Nowoczesna Thank you for this wonderful contribution to the topic. Your ability to explain complex ideas simply is admirable.
ufabet ufabet Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.
ufabet ufabet You’re so awesome! I don’t believe I have read a single thing like that before. So great to find someone with some original thoughts on this topic. Really.. thank you for starting this up. This website is something that is needed on the internet, someone with a little originality!
ufabet ufabet Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
热评文章
手把手教你用AI 10分钟生成一个APP!零基础也能搞定

手把手教你用AI 10分钟生成一个APP!零基础也能搞定

今日,我将向大家展示DeepSeek的全新玩法——从零开始,利用AI创建一个完整的应用程序。借助DeepSee...