ubuntu 启动jmeter-server失败的处理方法

在ubuntu上执行jmeter-server时出现错误提示:

直接执行: simon@ubuntu:~/apache-jmeter-2.12/bin$ ./jmeter-server

执行失败

Created remote object: UnicastServerRef [liveRef: [endpoint:[127.0.1.1:38459](local),objID:[-2f71b453:14bc50f7e9b:-7fff, 5674876117292833305]]]
Server failed to start: java.rmi.RemoteException: Cannot start. ubuntu is a loopback address.
An error occurred: Cannot start. ubuntu is a loopback address.

在jmeter-server加上参数后再次执行:simon@ubuntu:~/apache-jmeter-2.12/bin$ ./jmeter-server -Djava.rmi.server.hostname=192.168.1.95


执行成功

Created remote object: UnicastServerRef [liveRef: [endpoint:[192.168.1.95:52606](local),objID:[-23c1b278:14bc513de6e:-7fff, -1688781389247247018]]]




你可能感兴趣的:(接口测试)