sydapi/README.md
2026-06-10 10:29:39 +08:00

25 lines
730 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# sydapi4j
加密机 java 接口,基于 jna。
## 启动 Slave
在作为负载机的 Slave 机器上进行配置,主要有两种方式:
方法一:配置 jmeter.properties 文件
编辑 $JMETER_HOME/bin/jmeter.properties 文件,确认或取消注释以下配置:
```
server.rmi.ssl.disable=true # 禁用SSL简化内网配置
server.rmi.localport=1099 # 固定RMI端口方便防火墙放行
java.rmi.server.hostname=Slave_IP # 绑定本机网卡IP避免多网卡问题
```
配置完成后,在 Slave 的 bin 目录下启动服务:
Windows: 双击 jmeter-server.bat
Linux/Mac: 运行 ./jmeter-server
./jmeter-server -Djava.rmi.server.hostname=172.1.41.24 -Dserver.rmi.localport=1099