-
Notifications
You must be signed in to change notification settings - Fork 110
Command Line
stephen mallette edited this page May 10, 2013
·
16 revisions
Rexster is started and stopped through a command line interface exposed via the rexster.sh. When Rexster is started, it listens on a configurable port (port 8183 by default) for shutdown and status requests.
When starting Rexster from the command line using:
./bin/rexster.sh --startor with:
./bin/rexster.sh -sthere are several options available:
-
-wr,--webroot– Overrides theweb-rootconfiguration value inrexster.xml. -
-c,--configuration– Specify the location of a specificrexster.xmlfile to use for configuration. If this argument is not specified, Rexster will first try to read a file calledrexster.xmlfrom the root of the working directory. If it can’t find that it will use thecom.tinkerpop.rexster.rexster.xmlresource. -
-d,--debug– When this flag is included on the command line, log messages from Jersey are no longer suppressed. May be useful when developing Rexster itself or building Extensions. Read more about the debug mode in the context of logging configuration. -
-h,--help– When this flag is supplied on the command line, Rexster outputs a description of the command line options available. Rexster will not start when help is requested.
The following command will start Rexster on port 7788 with a configuration file called my-rexster.xml:
./bin/rexster.sh --start -c my-rexster.xmlWhen stopping Rexster from the command line using:
./bin/rexster.sh --stopor with the shorthand:
./bin/rexster.sh -xthere are several options available:
-
-rh,--rexsterhost– The host/IP address to which the shutdown command will be issued. Shutdown will assume127.0.0.1if the parameter is not specified. -
-rp,--rexsterport– The port of the host to which the shutdown command will be issued. Shutdown will assume8183if the parameter is not specified. -
-w,--wait– Wait for the server to confirm that shutdown was performed. -
-h,--help– When this flag is supplied on the command line, a description of the command line options is displayed. A command to stop Rexster will not be issued when help is requested.
The following command would issue a stop message to a Rexster server listening on 192.168.0.123 and port 7788.
./bin/rexster.sh --stop -rh 192.168.0.123 -rp 7788Aside from starting and stopping Rexster, there are several other commands that can be executed against Rexster.
-
-u,--status– Gets the status of the Rexster server (running or not). Use-hwith it for a list of command parameters. -
-v,--version– Shows the version of Rexster. -
-h,--help– When this flag is supplied on the command line, a description of the command options is displayed.