问题:启动Jmeter服务时报错
[root@iz2zeb3gsasfxe82nz5518z bin]# ./jmeter-server
Created remote object: UnicastServerRef2 [liveRef: [endpoint:[:39308](local),objID:[24e78a63:16243c70661:-7fff, 7492480871343944173]]]
Server failed to start: java.rmi.RemoteException: Cannot start. Unable to get local host IP address.; nested exception is:
java.net.UnknownHostException: iz2zeb3gsasfxe82nz5518z: iz2zeb3gsasfxe82nz5518z: Name or service not known
An error occurred: Cannot start. Unable to get local host IP address.; nested exception is:
java.net.UnknownHostException: iz2zeb3gsasfxe82nz5518z: iz2zeb3gsasfxe82nz5518z: Name or service not known
解决方法:
hostname 命令获取机器名称,追加一个映射 iz2zeb3gsasfxe82nz5518z
vim /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
120.79.160.143 iZwz95j86y235aroi85ht0Z
windows用户 修改c:\windows\system32\drivers\etc\hosts文件,增加一条域名 与IP的映射