我在将应用程序部署到远程服务器时遇到问题。这是我在尝试运行cli add命令时遇到的错误:
mfpdev服务器添加myqaserver --url https: //mbmfp.mycompany.com-登录管理员-密码aaaa --setdefault
错误:URL“ https://mbmfp.mycompany.com ”是无效的。URL必须具有以下格式“ protocol:// host:port”。运行“ mfpdev帮助服务器添加”以获取更多信息。
我的主机名https://mbmfp.mycompany.com包含端口。因此,再次添加端口将导致问题
最初,我尝试了register命令,并被提示使用add命令
mfpdev应用程序注册https://mbmfp.mycompany.com mfp
如何解决此问题?
INFO IBM MFP版本8.0.0-2016121916
谢谢
看起来您没有正确执行命令...
这是一个例子:
mfpdev server add
? Enter the name of the new server definition: mydevserver
? Enter the fully qualified URL of this server: http://mydevserver.example.com:9080
? Enter the MobileFirst Server administrator login ID: admin
? Enter the MobileFirst Server administrator password: admin
? Save the admin password for this server?: Yes
? Enter the context root of the MobileFirst administration services: mfpadmin
? Enter the MobileFirst Server connection timeout in seconds: 30
Verifying server configuration...
The following runtimes are currently installed on this server: mfp
Server profile 'mydevserver' added successfully.
然后,导航到应用程序的根文件夹,并:
mfpdev app register mydevserver
在此处了解更多信息:https : //mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/application-development/using-mobilefirst-cli-to-manage-mobilefirst-artifacts/#add-a-new-server-instance
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句