Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/303.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java JMeter安装:Can';t使用';连接到X11窗口服务器:0';作为显示变量的值_Java_Performance_Jmeter_Automated Tests - Fatal编程技术网

Java JMeter安装:Can';t使用';连接到X11窗口服务器:0';作为显示变量的值

Java JMeter安装:Can';t使用';连接到X11窗口服务器:0';作为显示变量的值,java,performance,jmeter,automated-tests,Java,Performance,Jmeter,Automated Tests,我正在尝试在远程VM上安装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实例,但我得到了相同的

我正在尝试在远程VM上安装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实例,但我得到了相同的错误


有什么想法吗?

如果您对无头跑步没问题,那么请遵循以下步骤:

对于非交互式测试,您可以选择不使用 GUI。为此,请使用以下命令选项:

-n这指定JMeter在非gui模式下运行

否则,您可以使用X11转发在GUI模式下运行JMeter