我创建了一个准系统 ec2 ubuntu 服务器,仅使用 hte 安装了 jmeter。
sudo apt-get install jmeter
该服务器被设计为从属服务器。当我运行 sudo jmeter-server 时,出现以下错误。这个错误让我无处可去,因为它是一个简单的 ubuntu 服务器,据我所知,jmeter apt-get install 安装了所有依赖项。我已经看过这篇文章,但对于解决问题的方法仍然含糊不清。
JMeter - 在 Linux 上启动 jmeter-server 时出现环回地址错误
sudo jmeter-server
[warning] /usr/bin/jmeter: Unable to locate commons-net in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate geronimo-activation-1.1-spec in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate geronimo-javamail-1.4-provider in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate jboss-j2ee in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate jdom1 in /usr/share/java
[warning] /usr/bin/jmeter: No JAVA_CMD set for run_java, falling back to JAVA_CMD = java
java.lang.Throwable: Could not access /usr/share/jmeter/lib/junit
at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:96)
Created remote object: UnicastServerRef [liveRef: [endpoint:[127.0.1.1:56808](local),objID:[22c4bd9a:13773cb6090:-7fff, 2168779335812031976]]]
Server failed to start: java.rmi.RemoteException: Cannot start. ip-10-142-111-66 is a loopback address.