linux启动jmeter(二十三),执行./jmeter.sh报错解决方法(转载)

时间:2024-08-22 08:06:01

转载自 http://www.cnblogs.com/yangxia-test

1.l-bash: ./jmeter.sh: Permission denied
解决办法:jmeter.sh的执行权限改改,是权限不够
chmod 777 jmeter.sh

2.An error occurred:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
步骤一:linux负载机环境下,切换到root用户,运行以下命令安装X11,该linux机器需能访问外网:
yum -y install xorg-x11-xauth
yum install xorg-x11-server-utils
yum install xorg-x11-server-Xnest
yum install libXtst
安装完成后再重新登录,提示/usr/bin/xauth:  creating new authority file /home/upload/.Xauthority

步骤二:本地机器安装Xming-6-9-0-31-setup.exe,安装成功后并运行。
步骤三:本地机器安装putty,putty进行如下配置,选择SSH—>X11,选中Enable X11 forwarding,X display location中填写:localhost:0。