jmeter在linux上启动报错:连接拒绝
2016-03-10 14:26
603 查看
最近在linux上使用jmeter进行压测时,遇到了下面问题:
使用jmeter-server启动jmeter server报错,提示中的endpoint并不是该server的ip:
server的ip是内网的192.168.60.223,但endpoint却是202.106.199.37,貌似是联通的一个外网ip。
[root@host_60_223 bin]# ./jmeter-server
Created remote object: UnicastServerRef [liveRef: [endpoint:[202.106.199.37:48777](local),objID:[114b877d:1535f0bf800:-7fff, -8953048443915791496]]]
Server failed to start: java.rmi.RemoteException: Cannot start. See server log file.; nested exception is:
java.rmi.ConnectException: Connection refused to host: 202.106.199.37; nested exception is:
java.net.ConnectException: 连接超时
An error occurred: Cannot start. See server log file.; nested exception is:
java.rmi.ConnectException: Connection refused to host: 202.106.199.37; nested exception is:
java.net.ConnectException: 连接超时
通过网上各种查询,有人说是hostname在hosts文件中没有配置,这个一般都需要配置吗?
虽然疑问但没有找到别的解决办法,只能试试看:
[root@host_60_223 bin]# hostname
host_60_223
修改/etc/hosts文件加入下面的ip hostname
vi /etc/hosts
192.168.60.223 host_60_223
果然跟这个有关,至于为什么现在还不清楚。
[root@host_60_223 bin]# ./jmeter-server
Created remote object: UnicastServerRef [liveRef: [endpoint:[192.168.60.223:36259](local),objID:[3d1e428a:1535f20e6c7:-7fff, -6723038591539730142]]]
使用jmeter-server启动jmeter server报错,提示中的endpoint并不是该server的ip:
server的ip是内网的192.168.60.223,但endpoint却是202.106.199.37,貌似是联通的一个外网ip。
[root@host_60_223 bin]# ./jmeter-server
Created remote object: UnicastServerRef [liveRef: [endpoint:[202.106.199.37:48777](local),objID:[114b877d:1535f0bf800:-7fff, -8953048443915791496]]]
Server failed to start: java.rmi.RemoteException: Cannot start. See server log file.; nested exception is:
java.rmi.ConnectException: Connection refused to host: 202.106.199.37; nested exception is:
java.net.ConnectException: 连接超时
An error occurred: Cannot start. See server log file.; nested exception is:
java.rmi.ConnectException: Connection refused to host: 202.106.199.37; nested exception is:
java.net.ConnectException: 连接超时
通过网上各种查询,有人说是hostname在hosts文件中没有配置,这个一般都需要配置吗?
虽然疑问但没有找到别的解决办法,只能试试看:
[root@host_60_223 bin]# hostname
host_60_223
修改/etc/hosts文件加入下面的ip hostname
vi /etc/hosts
192.168.60.223 host_60_223
果然跟这个有关,至于为什么现在还不清楚。
[root@host_60_223 bin]# ./jmeter-server
Created remote object: UnicastServerRef [liveRef: [endpoint:[192.168.60.223:36259](local),objID:[3d1e428a:1535f20e6c7:-7fff, -6723038591539730142]]]
相关文章推荐
- centos精简系统 源码安装客户端git
- centos7 的防火墙命令调整了
- Linux ssh安全设置
- linux文本处理三剑客之grep家族及其相应的正则表达式使用详解
- Linux的用户和权限管理
- linux mout
- ubuntu开机自启动vitrualbox中的虚拟机
- Linux中的用户和组及其权限管理
- Linux设备驱动之input子系统
- 嵌入式Linux设备驱动开发(二)
- centos7源码编译安装Ansible详细部署
- osv gdb 的使用
- linux常用命令
- [Linux]Summary
- Linux下通过命令检测远程服务器端口的可用性
- linux core 配置与调试
- Linux+Win双系统引导问题
- CentOS 6.3 安装 samba 共享(转)
- 第三周 构造一个简单的Linux系统MenuOS
- 深入理解SELinux SEAndroid