Link Search Menu Expand Document
Start for Free

Running the Stardog Server

This page discusses running the Stardog Server.

Page Contents
  1. Starting the Server
    1. Locking the Home Directory
  2. Stopping the Server

Starting the Server

Unlike the other stardog-admin subcommands, starting the server may only be run locally (i.e. on the same machine the Stardog Server is will run on).

The simplest way to start the server—running on the default port, detaching to run as a daemon, and writing stardog.log to the current working directory— is

$ stardog-admin server start

To specify parameters, such as a custom port to bind the server to:

$ stardog-admin server start --port=8080

Stardog binds its server to 0.0.0.0. You can specify a different network interface for Stardog to bind to using the --bind property of server start

For more information on the server start command, please see its man page.

Locking the Home Directory

Stardog server will lock STARDOG_HOME when it starts to prevent synchronization errors and other nasties if you start more than one Stardog server with the same STARDOG_HOME. If you need to run more than one Stardog server instance, choose a different STARDOG_HOME or pass a different value to the --home option.

Do not manually delete the lock file. Please see the Administrating Stardog 101 section for more information about common pitfalls with the lock file.

Stopping the Server

Stopping the server is simple:

$ stardog-admin server stop

By default, this will stop a server running on localhost on the default port (5820. If either of those assumptions does not hold, you can use the --server option to provide the URL of the server to stop.

For more information on the server stop command, please see its man page.