我正在Linux服务器上安装SoapUI Open Source。
对于安装,我正在执行以下命令:
wget https://s3.amazonaws.com/downloads.eviware/soapuios/5.4.0/SoapUI-5.4.0-linux-bin.tar.gz
tar -xzf SoapUI-5.4.0-linux-bin.tar.gz -C /opt/
cd /opt/SoapUI-5.4.0/bin/
./soapui.sh
虽然安装最后一步(./soapui.sh)给了我以下错误:
05:11:16,498 INFO [DefaultSoapUICore] All plugins loaded
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
at java.awt.Window.<init>(Window.java:536)
当我使用'export DISPLAY =:0.0'时,步骤./soapui.sh进行长时间运行,需要手动中止并显示以下消息 -
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
请建议在Linux上使用SoapUI Open Source的命令行安装解决方案。
答案 0 :(得分:1)
没有必要运行soapui.sh脚本进行安装,因为SoapUI-5.4.0-linux-bin.tar.gz isady有testrunner.sh。感谢@Rao。
您可以按以下方式执行:
wget https://s3.amazonaws.com/downloads.eviware/soapuios/5.4.0/SoapUI-5.4.0-linux-bin.tar.gz
tar -xzf SoapUI-5.4.0-linux-bin.tar.gz -C /opt/
/opt/SoapUI-5.4.0/bin/testrunner.sh -r soapui-project.xml
答案 1 :(得分:0)
从soapui.org下载.sh文件 转到下载的文件夹 授予.sh文件的执行权限 chmod + x ./SoapUI*.sh 然后, 须藤./SoapUI*.sh 安装程序窗口打开,然后按照以下步骤操作,然后单击下一步。