IBM Mobilefirst CLI - Server start issue

╄→гoц情女王★ 提交于 2019-12-01 11:17:52

The JavaLaunchHelper error is not the problem here; Anyone using Java 7 will experience it, but things will work regardless.

The problem here is the second error:

The MobileFirst server failed to start. The port may be in use by another instance of a running server, or the server may not exist.

Verify you do not have an already running server, that was started either by the CLI or by MFP Studio in an Eclipse installation.

  1. In the command line, run mfp stop
  2. In Eclipse, well, quit it
  3. Make sure the Java process is not running

Then, start over. Using the CLI, create a new project and application and try to start the server. For example:

  1. cd /Users/idanadar/Desktop
  2. mfp create testProject
  3. cd testProject
  4. mfp add hybrid testApp
  5. mfp start
  6. mfp build
  7. mfp deploy
  8. mfp console

On OSX, you can locate and kill a process holding open a port using the following:

Run (assumes port 10080):

$ lsof -i :10080

Then if a process is shown, run the following using the shown Process ID:

$ kill -9 {PID}

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!