本文介绍了如何在Linux服务器上进行SoapUI开放源码的命令行安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在我的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开放源代码的命令行安装解决方案。
推荐答案
不需要运行soapui.sh脚本进行安装,因为SoapUI-5.4.0-linux-bin.tar.gz已经准备好了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
这篇关于如何在Linux服务器上进行SoapUI开放源码的命令行安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!