Linux上jmeter-server启动失败

2017-01-05 20:14:36来源:CSDN作者:github_36379934人点击

Jmeter-server启动失败:Cannot start. Unable to get local host IP address. is a loopback address

在Windows下启动Jmeter非常顺利,转到Linux下居然启动失败。根据抛出的异常的信息来看,这个跟ip有关。
不出意料,果然是这个问题。

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

根据异常的大意可知,应该是hostname与localhost不一致导致的,所以,使用hostname命令查看用户名,果然是不一致的我linux机器的hostname为v3因此将上述改为下面的就可以了。


127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
10.2.250.203 v3.rdev.tal.net v3
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

由/etc/hosts文件导致启动失败的错误有:

1,Created remote object: UnicastServerRef [liveRef: [endpoint:[10.20.10.31:38796](local),objID:[-b0d822e:12794fee8b1:-7fff, 8314597152635832475]]]Server failed to start: java.rmi.RemoteException: Cannot start. Unable to get local host IP address.
2,Created remote object: UnicastServerRef [liveRef: [endpoint:[10.20.10.31:38796](local),objID:[-b0d822e:12794fee8b1:-7fff, 8314597152635832475]]]Server failed to start: java.rmi.RemoteException: Cannot start. Unable to get local host IP address.

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台