A newer version of this documentation is available.

View Latest

Starting and Stopping Couchbase Server

Full Administrators and Cluster Administrators can use the start-up and shutdown scripts to manually start up or shut down Couchbase Server.

Start and Stop on Linux

Couchbase Server is installed as a standalone application that has a support for running as a background (daemon) process during startup by using a standard control script. The script is located in /etc/init.d/couchbase-server.

The startup script is automatically installed during installation from one of the Linux packaged releases (Debian/Ubuntu or Red Hat/CentOS).

To manually start Couchbase Server using the startup/shutdown script:

  • For RHEL 6:

     # sudo service couchbase-server start
  • For RHEL 7:

    # sudo systemctl start couchbase-server

To manually stop Couchbase Server using the startup/shutdown script:

  • For RHEL 6:

    # sudo service /etc/init.d/couchbase-server stop
  • For RHEL 7:

    # sudo systemctl stop couchbase-server

Start and Stop with Windows Task Manager

You can use the Services tab within the Windows Task Manager to start and stop Couchbase Server. You will need a power user or administrator privileges, or have separately granted rights to manage services to start and stop Couchbase Server. By default, the service automatically starts when the machine boots. Couchbase Server can be started and stopped via Windows Task Manager, Windows system net command, and Couchbase-supplied .bat scripts.

To manually start the service from the Windows interface:

  1. Open the Windows Task Manager and select the Services tab to open the Services management console.

  2. Alternatively, select the Start, select Run and then type Services.msc to open the Services management console.

  3. Locate the Couchbase Server service and right-click.

  4. Select Start or Stop as appropriate.

You can also alter the configuration so that the service is not automatically started during boot.

Start and stop with Windows System net Command

To start and stop Couchbase Server using net:

 net start CouchbaseServer
 net stop CouchbaseServer
Start and Stop with Couchbase-supplied .bat Scripts

The Couchbase-supplied start and stop scripts are provided in the \bin directory of the standard installation:

To start and stop Couchbase Server, use the scripts located in:

C:\Program Files\Couchbase\Server\bin\service_start.bat

C:\Program Files\Couchbase\Server\bin\service_stop.bat