Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: Working directories get created relative to the current directory. For the working directories to be created in the proper place, Karaf must be launched from its home/installation directory.

It will start a Karaf console, allowing you to administrate your Karaf instance.

You can launch Karaf in server mode (without terminal output):

Code Block

bin\start.bat

On Unix

From a command shell, change to the installation directory and run Karaf. For the binary distribution, go to

...

Then type:

Code Block
bin/karaf.sh
Warning
titleWarning

Do NOT close the console or shell in which Karaf was started, as that will terminate Karaf (unless Karaf was started with nohup).

Testing the Installation and connecting to a running Karaf

If Karaf is up and running without problems, the Window's console window or the Unix command shell will display something similar to the following log line:

Include Page
KARAF:Karaf welcome screen
KARAF:Karaf welcome screen

You can use the client mode to connect to a running Karaf:
On Windows:

Code Block

bin\client.bat

On Unix:

Code Block

bin/client

Stopping Karaf

For both Windows and Unix installations, you can perform a clean shutdown of Karaf by using the following command:

Code Block
osgi:shutdown

If Karaf was started in the background on Unix, the process can be killed, with the followingYou can use the stop script too:
On Windows:

Code Block
ps -ef | grep karaf
kill [PID]
 where [PID] is the process id of the Karaf process.bin\stop.bat

On Unix:

Code Block

bin/stop

#top

Wiki Markup
{scrollbar}