天天看點

linux啟動jmeter,執行./jmeter.sh報錯解決方法

linux啟動jmeter,執行./jmeter.sh報錯解決方法

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。

繼續閱讀