问题
I have installed the last version of Orion, 0.12.0, and when I send a queryContext or updateContext, the system gives me: "curl: (7) couldn't connect to host",
what's the problem?
Thanks!
回答1:
After analyzing the user feedback in the question comments, the problem seems to be that Orion Context Broker is not running.
In order to start Orion Context Broker (see reference documentation in https://wiki.fi-ware.org/Publish/Subscribe_Broker_-_Orion_Context_Broker_-_Installation_and_Administration_Guide#Running_Orion_Context_Broker for more detail) you can either:
- Use the
/etc/init.d/contextBroker start
command (run it as root or with sudo privileges) - Using
contextBroker
command directly- In order to check that everything is ok, it uses to be a good idea to do a first run in foreground with maximum tracelevel activated, i.e.
contextBroker -fg -t 0-255
. Once you ensure that it works properly (e.g. curl version, etc.), then interrupt the process with Ctrl+C in the console and run it in background.
- In order to check that everything is ok, it uses to be a good idea to do a first run in foreground with maximum tracelevel activated, i.e.
来源:https://stackoverflow.com/questions/23863875/orion-curl-7-couldnt-connect-to-host