Can't connect to X11 window server using 'localhost:零' as the value of the DISPL

Can't connect to X11 window server using 'localhost:0' as the value of the DISPL

问题描述:

在ubuntu上面运行./jmeter, 报错Can't connect to X11 window server using 'localhost:0' as the value of the DISPLAY variable.


解决方案:export DISPLAY=IP:0.0

然后重新打开一个窗口发现OK了