Skip to content

Commit

Permalink
🎉auto update by Gmeek action
Browse files Browse the repository at this point in the history
  • Loading branch information
hantianzhun committed Jan 17, 2025
1 parent cf89111 commit c7e31c7
Show file tree
Hide file tree
Showing 8 changed files with 681 additions and 18 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 枕上诗书闲的博客 :link: https://hantianzhun.github.io/blog
### :page_facing_up: [13](https://hantianzhun.github.io/blog/tag.html)
### :page_facing_up: [14](https://hantianzhun.github.io/blog/tag.html)
### :speech_balloon: 4
### :hibiscus: 61934
### :alarm_clock: 2025-01-17 23:29:26
### :hibiscus: 64083
### :alarm_clock: 2025-01-17 23:35:23
### Powered by :heart: [Gmeek](https://github.com/Meekdai/Gmeek)
90 changes: 90 additions & 0 deletions backup/python部署+Jmeter安装.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# 1.python项目部署

## 1.1下载Python安装包

- 在Python官网进行下载:[Python官网下载地址](https://www.python.org/downloads/) [按住ctrl点击链接即可打开]

## 1.2安装Python

![](https://hantianzhun.github.io/blog/issues14.01.png)

![](https://hantianzhun.github.io/blog/issues14.02.png)

![](https://hantianzhun.github.io/blog/issues14.03.png)

- **点击install,完成后弹出的界面点击close即可**
- **在cmd里面输入`python -V`**

![](https://hantianzhun.github.io/blog/issues14.04.png)

## 1.3安装python需要的软件包

- 安装python包,在项目代码的路径(不要出现中文)

```cmd
安装第三方库
pip install -r 文件名.txt(文件里是需要安装的包列表)
pip install 包名==版本号
使用镜像源进行包的安装(可以提升速度)
pip install -r requirements.txt -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
使用镜像源更新pip
python -m pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade pip
```

![](https://hantianzhun.github.io/blog/issues14.05.png)

> [!NOTE]
> 没error就是正常安装了包
- 查看包,`pip list`

![](https://hantianzhun.github.io/blog/issues14.06.png)

- python包安装成功,在项目路径使用`python xxx.py`即可

![](https://hantianzhun.github.io/blog/issues14.07.png)

# 2.Jmeter安装+使用

## 2.1Jmeter安装

- 在Apache官网进行下载:[Jemter下载地址](https://jmeter.apache.org/download_jmeter.cgi) [按住ctrl点击链接即可打开]

- 将下载的apache-jmeter-5.6.3.zip的压缩包解压到想要的目录即可(不可是中文路径)

## 2.2Windows的JDK是安装包

> [!CAUTION]
> 安装配置环境变量之后JDK改位置和环境变量,双击Jmeter会无法使用
- 配置环境变量,验证是否部署成功 java -version
- 详情可见:[01_Java环境变量配置](./01_Java环境变量配置.md) [按住ctrl点击链接即可打开]

- 双击`安装目录/bin/ApacheJMeter.jar`即可打开中文界面的Jmeter

## 2.3Windows的JDK是压缩包

- 解压到想要的文件夹
- 配置环境变量,验证是否部署成功 java -version
- 详情可见:[01_Java环境变量配置](./01_Java环境变量配置.md) [按住ctrl点击链接即可打开]

- 使用jmeter.bat启动
1. 打开 JMeter 的安装目录,找到 `bin` 文件夹。
2.`bin` 文件夹中,找到并打开 `jmeter.properties` 文件。
3.`jmeter.properties` 文件中,找到以 `#language=` 开头的行。这行通常位于文件的开头部分。
4. 去掉该行前面的 `#` 号,并将 `en` 改为 `zh_CN`。修改后的行应该类似于 `language=zh_CN`
5. 保存并关闭 `jmeter.properties` 文件。
6. 重新启动 JMeter 软件,你会发现界面已经变成了中文,并且这种设置会永久生效。

- 在jmeter.bat同目录下新建一个`start.vbs`

```vbscript
#目录和Jmeter安装目录有关系
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "D:\apache-jmeter-5.3\bin\jmeter.bat" & Chr(34), 0
Set WshShell = Nothing
```

- 可以给这个vbs文件创建一个快捷方式到桌面,对快捷方式也可以随意改名

- 双击这个vbs文件就可以打开中文界面的Jmeter
2 changes: 1 addition & 1 deletion blogBase.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ <h1>
<span class="Label LabelName" style="background-color:#5166BF"><object><a style="color:#fff" href="tag.html#教程">教程</a></object></span>
<span class="Label LabelTime" style="background-color:#bc4c00">2024-08-29</span>
</div>
</a><a class="SideNav-item d-flex flex-items-center flex-justify-between" href="post/14.html">
<div class="d-flex flex-items-center">
<svg class="SideNav-icon octicon" style="witdh:16px;height:16px"><path class="svgTop0" d=""></path>
</svg>
<span class="listTitle">python部署+Jmeter安装</span>
</div>
<div class="listLabels">

<span class="Label LabelName" style="background-color:#25E674"><object><a style="color:#fff" href="tag.html#学习">学习</a></object></span>
<span class="Label LabelTime" style="background-color:#0969da">2025-01-17</span>
</div>
</a><a class="SideNav-item d-flex flex-items-center flex-justify-between" href="post/13.html">
<div class="d-flex flex-items-center">
<svg class="SideNav-icon octicon" style="witdh:16px;height:16px"><path class="svgTop0" d=""></path>
Expand Down Expand Up @@ -179,17 +190,6 @@ <h1>
<span class="Label LabelName" style="background-color:#5166BF"><object><a style="color:#fff" href="tag.html#教程">教程</a></object></span>
<span class="Label LabelTime" style="background-color:#bc4c00">2024-10-01</span>
</div>
</a><a class="SideNav-item d-flex flex-items-center flex-justify-between" href="post/5.html">
<div class="d-flex flex-items-center">
<svg class="SideNav-icon octicon" style="witdh:16px;height:16px"><path class="svgTop0" d=""></path>
</svg>
<span class="listTitle">Android端压缩与解压</span>
</div>
<div class="listLabels">
<span class="Label" style="background-color:#006b75">1</span>
<span class="Label LabelName" style="background-color:#5166BF"><object><a style="color:#fff" href="tag.html#教程">教程</a></object></span>
<span class="Label LabelTime" style="background-color:#bc4c00">2024-09-08</span>
</div>
</a>
</nav><nav class="paginate-container" aria-label="Pagination">
<div class="pagination"><span class="previous_page" aria-disabled="true">上一页</span>
Expand Down
13 changes: 12 additions & 1 deletion docs/page2.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,18 @@ <h1>
<div id="content">
<div style="margin-bottom: 16px;">个人使用的一个博客</div>
<nav class="SideNav border">
<a class="SideNav-item d-flex flex-items-center flex-justify-between" href="post/4.html">
<a class="SideNav-item d-flex flex-items-center flex-justify-between" href="post/5.html">
<div class="d-flex flex-items-center">
<svg class="SideNav-icon octicon" style="witdh:16px;height:16px"><path class="svgTop0" d=""></path>
</svg>
<span class="listTitle">Android端压缩与解压</span>
</div>
<div class="listLabels">
<span class="Label" style="background-color:#006b75">1</span>
<span class="Label LabelName" style="background-color:#5166BF"><object><a style="color:#fff" href="tag.html#教程">教程</a></object></span>
<span class="Label LabelTime" style="background-color:#bc4c00">2024-09-08</span>
</div>
</a><a class="SideNav-item d-flex flex-items-center flex-justify-between" href="post/4.html">
<div class="d-flex flex-items-center">
<svg class="SideNav-icon octicon" style="witdh:16px;height:16px"><path class="svgTop0" d=""></path>
</svg>
Expand Down
Loading

0 comments on commit c7e31c7

Please sign in to comment.