我正在尝试在远程虚拟机上安装 JMeter。
我使用 debian 8.3 操作系统创建了 VM 并安装了 Java 和 JMeter,但是当我尝试运行 JMeter 时出现以下错误:
An error occurred: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
我尝试将 DISPLAY
变量也设置为 :1
和 :0.0
。
我还尝试使用 Centos 7.2 操作系统创建新的 VM 实例,但遇到了相同的错误。
有什么想法吗?
最佳答案
如果您对 headless 运行感到满意,请按照 user guide 操作:
For non-interactive testing, you may choose to run JMeter without the GUI. To do so, use the following command options:
-n This specifies JMeter is to run in non-gui mode
否则,您可以使用 X11 转发在 GUI 模式下运行 JMeter。
关于java - JMeter安装: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36528420/