MobileFirst Server 7.0.0 作为 Windows Server 2012 上的服务无法识别运行时环境
MobileFirst Server 7.0.0 as service on Windows Server 2012 not recognizing runtime environments
运行 Windows Server 2012 R2 上的 MobileFirst Enterprise Server 遇到问题。当我们以管理员身份开始使用批处理文件时,只要我们保持远程连接,服务器就可以正常工作,我们就会看到运行时环境。但是当我们注销时,服务器无法访问。我们创建了一个 Windows 服务,它使用相同的命令启动服务器:
*sc create WASLibertyV85 binPath= "C:\Program Files\IBM\WebSphere\Liberty\bin\server.bat start worklight" DisplayName="IBM WebSphere Liberty V8.5 Worklight" start=auto*
但是Runtime没有显示,我们只看到:
No runtime environment deployed in this server.
有没有办法让 MobileFirst Server 在作为服务启动时看到运行时环境?
MFP 未 运行 作为一项服务。在您的例子中,MFP 只是一个 Web 应用程序(一个 .war 文件、一个 .jar 文件和一些工件)运行位于 WebSphere Liberty 之上。所以所有这些都只与 Liberty 有关,与 MFP 无关。
只要 Liberty 实例正确启动,它就应该自行处理所有事情,包括部署到它的 Web 应用程序,MFP 就是其中之一。
您或许可以按照 this forum topic 中提供的说明来解释如何将 Apache Commons Daemon 用于 运行 Liberty 作为 Windows 服务。还有其他工具也可以做到这一点。
问题是由于使用设置为当前 windows 用户的登录帐户启动服务引起的。当我们切换到本地系统帐户并启用允许系统与桌面交互时,运行时在 MobileFirst Server 上变得可见。
这是我们的完整解决方案:
1.以管理员身份启动 CMD,然后 运行 this:
sc create WASLibertyV85 binPath= "C:\Program Files\IBM\WebSphere\Liberty\bin\server.bat start worklight" DisplayName="IBM WebSphere Liberty V8.5 Worklight" start=delayed-auto
2。在 Services.msc 下打开“IBM WebSphere Liberty V8.5 Worklight”服务的属性并设置此项(如果尚未设置):
Tab GENERAL -> Startup type: Automatic (Delayed Start)
Tab LOG ON -> Log on as: Local System account + Allow service to interact with desktop
++ 服务器重新启动时,最多可能需要 2 分钟,直到 运行 次显示在 Worklight 控制台中!++
运行 Windows Server 2012 R2 上的 MobileFirst Enterprise Server 遇到问题。当我们以管理员身份开始使用批处理文件时,只要我们保持远程连接,服务器就可以正常工作,我们就会看到运行时环境。但是当我们注销时,服务器无法访问。我们创建了一个 Windows 服务,它使用相同的命令启动服务器:
*sc create WASLibertyV85 binPath= "C:\Program Files\IBM\WebSphere\Liberty\bin\server.bat start worklight" DisplayName="IBM WebSphere Liberty V8.5 Worklight" start=auto*
但是Runtime没有显示,我们只看到:
No runtime environment deployed in this server.
有没有办法让 MobileFirst Server 在作为服务启动时看到运行时环境?
MFP 未 运行 作为一项服务。在您的例子中,MFP 只是一个 Web 应用程序(一个 .war 文件、一个 .jar 文件和一些工件)运行位于 WebSphere Liberty 之上。所以所有这些都只与 Liberty 有关,与 MFP 无关。
只要 Liberty 实例正确启动,它就应该自行处理所有事情,包括部署到它的 Web 应用程序,MFP 就是其中之一。
您或许可以按照 this forum topic 中提供的说明来解释如何将 Apache Commons Daemon 用于 运行 Liberty 作为 Windows 服务。还有其他工具也可以做到这一点。
问题是由于使用设置为当前 windows 用户的登录帐户启动服务引起的。当我们切换到本地系统帐户并启用允许系统与桌面交互时,运行时在 MobileFirst Server 上变得可见。
这是我们的完整解决方案:
1.以管理员身份启动 CMD,然后 运行 this:
sc create WASLibertyV85 binPath= "C:\Program Files\IBM\WebSphere\Liberty\bin\server.bat start worklight" DisplayName="IBM WebSphere Liberty V8.5 Worklight" start=delayed-auto
2。在 Services.msc 下打开“IBM WebSphere Liberty V8.5 Worklight”服务的属性并设置此项(如果尚未设置):
Tab GENERAL -> Startup type: Automatic (Delayed Start)
Tab LOG ON -> Log on as: Local System account + Allow service to interact with desktop
++ 服务器重新启动时,最多可能需要 2 分钟,直到 运行 次显示在 Worklight 控制台中!++