Start and Stop Couchbase Server
Start and stop the Couchbase Server service and application.
On Linux, Couchbase Server is installed as a standalone application with support for running as a background (daemon) process during startup. The startup script is automatically installed when you use any of the packaged releases of Couchbase Server for Linux. By default, Couchbase Server is configured to start automatically at run levels 2, 3, 4, and 5, and explicitly shut down at run levels 0, 1, and 6.
sudo systemctl start couchbase-server
sudo systemctl stop couchbase-server
The instructions in the previous section are meant to be used on modern versions of Linux that use systemd for init processing.
For versions of Linux that use SysV for init processing, you need to use the
service command for starting and stopping Couchbase Server.
sudo service couchbase-server start
sudo service couchbase-server stop
On Windows, Couchbase Server is installed as a Windows service. By default, the Couchbase Server service automatically starts when the system boots.
You can manage the service using the Windows Services app, the
net command, or with Couchbase-supplied batch scripts.
You need to be logged into a user account that has administrator privileges, or one that has separately granted rights to manage the Couchbase Server service.
Open the Services app.
You can search for
services.mscin Windows to find the app quickly.
Find CouchbaseServer in the list of services and right-click on it.
You can start and stop the service from this menu, or select menu:[Properties] to configure how the service runs, such as whether it starts at system boot.
If CouchbaseServer isn’t in the list, then you should attempt to start the service using the batch script method below.
net start CouchbaseServer
net stop CouchbaseServer
In File Explorer, go to
The scripts are named something similar to
Right-click on the script that you want to use and select menu:[Run as administrator].
A User Account Control prompt may ask for your permission to run Windows Command Processor. Click Yes.
A terminal window will open and display the Couchbase Server startup and shutdown progress. The window will automatically close if the process is successful.
On macOS, Couchbase Server is installed as a standard application that resides in the system Applications folder. Starting and stopping Couchbase Server is controlled by launching and quitting the application.
Go to the Applications folder and double-click on
Couchbase Server runs as a background application, and when it starts, the Couchbase Server icon will appear in the menu bar.
Click and select menu:[Quit Couchbase Server]. The menu bar icon will disappear when Couchbase Server shuts down.
open -a Couchbase\ Server
osascript -e 'quit app "Couchbase Server"'
You may receive the following error:
0:27: execution error: Couchbase Server got an error: User canceled. (-128).
You can ignore this error.