First off you need to add httpserver to the list of modules like so:

./scripts/build image=java-example,httpserver

I do not think you need cli module as part of the image. The cli module is 
merely a client side lua-based shell that lets you connect to OSv if 
httpserver is part of the image.

Hope it helps,
Waldek

On Friday, December 16, 2016 at 2:26:26 AM UTC-5, [email protected] 
wrote:
>
> I'm trying to run a simple java-example application(which print "hello 
> world") under the apps,i built it with CLI by the command below:
>                  ./scripts/build image=java-example,cli
> and then,run it with command:
>                 ./scripts/run.py
>
> it successfully print "hello world",but when i input some simple command( 
> such as ls,cd ) in the cli,it turns out:
>    ls: Unknown response code: connection refused
> or
>    cd: Unknown response code: connection refused
> only the command 'exit' works.
>
> How does this problem happen and how to sovle it?
>
>

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to