【发布时间】:2015-11-11 11:02:29
【问题描述】:
我正在尝试使用 MobileFirst Command Line Interface (7.1) 部署到远程 MobileFirst 7.1 服务器。
此服务器托管在 http://1.2.3.4:9080/,控制台和管理服务在默认 URL http://1.2.3.4:9080/worklightconsole 和 http://1.2.3.4:9080/worklightadmin 上可用。我已经部署了项目.war,并通过管理控制台验证了这一点(一切看起来都很正常)。我还从我的浏览器验证了管理服务是可以访问的。用户名和密码默认为admin/admin。
我尝试使用以下命令添加服务器配置文件:
/Applications/IBM/MobileFirst-CLI-7.1/mfp server add myserveralias --url http://1.2.3.4:9080 --login admin --password admin
但是,这一直失败:
Couldn't connect to server 'myserveralias' at 'http://1.2.3.4:9080'.
failed to retrieve runtime information: Unexpected token <: HTTP 404 - Not Found
Server profile 'myserveralias' added successfully.
(我认为“成功”的消息是错误的。)
我已尝试添加 --contextroot /worklightadmin(我认为这是默认设置),但这似乎没有任何区别。
在使用的主机和 MFP CLI 之间没有代理或防火墙。
我做错了什么?
【问题讨论】:
-
查看原始配置 (~/.ibm/mobilefirst/config.json),并确保它具有正确的值,类似于:
{ "servers": { "bluemix": { "local": false, "protocol": "http", "host": "134.168.20.196", "port": "9080", "login": "admin", "password": "YWRtaW4=", "contextRoot": "worklightadmin" },另外,确保您实际上可以访问OpsConsole 使用定义的 URL。在你的情况下 -http://1.2.3.4:9080/worklightconsole/index.html -
@KarlBishop 谢谢。仔细检查了这些值(我可以导航到 worklightconsole) - 仍然有同样的问题。
标签: ibm-mobilefirst mobilefirst-cli