Skip to content

Command Line

spmallette edited this page Aug 30, 2011 · 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 8184 by default) for shutdown and status requests.

Starting Rexster

When starting Rexster from the command line using:

rexster.sh --start

there are several options available:

  • -rp, --rexsterport – Overrides the rexster-server-port configuration value in rexster.xml. This value is 8182 by default.
  • -dp, --doghouseport – Overrides the adminserver-port configuration value in rexster.xml. This value is 8183 by default.
  • -wr, --webroot – Overrides the web-root configuration value in rexster.xml.
  • -c, --configuration – Supplies the rexster.xml file to use for configuration. If this value is not specified, Rexster will try to get use the com.tinkerpop.rexster.rexster.xml resource.
  • --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.
  • -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:

rexster.sh --start -rp 7788

Stopping Rexster

When stopping Rexster from the command line using:

rexster.sh --stop

there are several options available:

  • -rh, --rexsterhost – The host/IP address to which the shutdown command will be issued. Shutdown will assume 127.0.0.1 if the parameter is not specified.
  • -rp, --rexsterport – The port of the host to which the shutdown command will be issued. Shutdown will assume 8184 if the parameter is not specified.
  • -cmd, --command – The shutdown command is “s” and will be defaulted as such if not specified.
  • -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.

rexster.sh --stop -rh 192.168.0.123 -rp 7788

Other Commands

Aside 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)
  • -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.
Clone this wiki locally