linux 启动 jmeter 报 No X11 DISPLAY variable was set, but this program performed an operation which requires it
1.启动jemter
An error occurred:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
解决办法:
1.安装图形服务x11
yum -y install xorg-x11-xauth xorg-x11-server-utils xorg-x11-server-Xnest libXtst
2.安装Xming
下载Xming:
http://sourceforge.net/projects/xming/
以及Xming-fonts
http://sourceforge.net/projects/xming/files/Xming-fonts/7.5.0.70/
注意这里要选择“don't install an SSH client”
注意这里默认的是选中Launch Xming, 我没有选这一项,等到安装了Xming-fonts以后再打开
3.安装Xming-fonts, 没有什么值得注意的,根据自己的情况安装。
4.启动 Xming
Start->Allprograms->Xming->Xming
个人操作中补充:
启动后,先点击右下角,查看端口号,看到是0.0
否则启动jmeter 会出现错误:
否则会出现错误:
PuTTY X11 proxy: unable to connect to forwarded X server: Network error: Connect ion refused
An error occurred: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
5.打开putty并设置,请见以下图形界面
选择左侧session, 在Host Name里面填远程服务器名称或者IP地址
选择connection->SSH->X11, 在X11 forwarding 里面选择 Enable X11 forwarding, 注意图中没有显示,这里X display location我输入的是:localhost:0,也可以不输。
点击open远程连接成功,输入用户名和密码后启动jmeter,就可以打开 jmeter 图形化界面了