在linux上启动websphere应用服务器(ubuntu 14.04)

我在Linux VM上安装了试用版的Websphere(来自BASETRIAL.agent.installer.linux.gtk.x86_64.zip )。 我想用命令行来启动它进行testing。 我所知道的是运行/opt/IBM/WebSphere/AppServer/bin/startServer.sh ,但它抱怨并抛出错误:

WCMD0002E,startServer.sh需要一个configuration文件。 没有默认configuration文件存在,configuration文件名称未指定….

它也给wsadmin.shstartNode.sh同样的错误。 我不确定要提供什么服务器名称和/或configuration文件名称以及在哪里可以find它们。 我在/opt/IBM/WebSphere/AppServer/profileTemplatessearch了相同的/opt/IBM/WebSphere/AppServer/profileTemplates ,但找不到任何东西。 请帮忙。

您已经安装了产品的基本包,但是您还需要安装自定义包。 简而言之:

  • findconfiguration文件pipe理工具并创build应用程序服务器configuration文件 在创buildconfiguration文件后,您将在以下位置find名为AppSrv01的configuration文件: /opt/IBM/WebSphere/AppServer/profiles/AppSrv01

  • 然后转到以下位置/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin并发出命令( ./startServer.sh server1 )。它将从消息服务器开始准备进行电子商务。

新安装可能不会创buildconfiguration文件。 如果您只想使用默认服务器启动并运行configuration文件,有几种方法可以实现:

1)使用WAS_HOME / bin / ProfileManagement / pmt使用PMT(Profile Management Tool)

2)命令行完全指定,例如:

 WAS_HOME/bin/manageprofiles.sh -create -templatePath WAS_HOME/profileTemplates/default -profileName AppSrv01 -profilePath WAS_HOME/profiles/AppSrv01 -isDefault 

这是完全枚举的forms,显示使用哪个configuration文件模板以及将在何处创build

3)默认的命令行,结果与上面相同,例如:

 WAS_HOME/bin/manageprofiles.sh -create -profileName AppSrv01 

所有这三个应该做一个标准的服务器。 启动它使用:

 WAS_HOME/profiles/AppSrv01/bin/startServer.sh server1