Installing on Windows
Installation using a package management system on Windows.
This installation guide only supports 64-bit systems. Windows 7 and 8 are supported only for development purposes. See Supported platforms for details.
To install Couchbase Server on Windows, you need to perform following prerequisites:
Make sure that you have no anti-virus software running on the machine before you start the installation process.
Verify that you have administrator privileges using a local system account on the machine where you are performing the installation.
By default, on Windows the TCP/IP has default number of ports available for client communication.
You need to follow the information provided in Avoiding TCP/IP Port Exhaustion to adjust the configuration and increase the number of available ports.
By default, the Windows system does not provide an adequate number of ephemeral ports for Couchbase Server clusters. Without the correct number of open ephemeral ports, you can experience errors during rebalance, timeouts on clients, and failed backups.
The Couchbase Server installer will automatically check for your current port setting and adjust it if needed. See Microsoft KB-196271.
|Couchbase Server uses the Microsoft C++ redistributable package, which is automatically downloaded during installation. However, if another application on your machine is already using the package, your installation process can fail. To make sure that your installation process completes successfully, shut down all other running applications during installation. For Windows 2008, you must upgrade your Windows Server 2008 R2 installation with Service Pack 1 installed before running Couchbase Server. You can obtain Service Pack 1 from Microsoft TechNet.|
You can download Couchbase Server directly using the
wget.exe command for Windows or Powershell scripting.
The basic syntax of the
wget command is:
$ wget [option]... [url]...
For example, the following command downloads a version of Couchbase Server and that runs on Windows Server 2012 R2:
$ wget.exe --no-check-certificate http://packages.couchbase.com/releases/version/couchbase-server-enterprise-version-windows_amd64.exe
To install Couchbase Server on Windows using interactive install wizard follow the steps below:
In Windows Explorer, locate the downloaded
Couchbase Server.exefile, which typically is located in the default Downloads folder. Double click on the executable file.
The installer for Windows detects if you need to install any redistributable packages included with Couchbase Server. If these packages are not already on your system, they are automatically installed along with Couchbase Server.
You will be prompted with the Installation Location screen. You can change the location where the Couchbase Server application is located, which configures the server location and not the location where the persistent data is stored.
The installer copies necessary files to the system. During the installation process, the installer also verifies that the default administration port is not already in use by another application. If the default port is unavailable, the installer prompts for a different port to be used for administration of Couchbase Server. The installer asks you to set up sufficient ports available for the node.
By default, Microsoft Server will not have an adequate number of ephemeral ports, see Microsoft Knowledge Base Article 196271:
Click Yes to continue.
Without a sufficient number of ephemeral ports, a Couchbase Server cluster fails during rebalance and backup. Other operations, such as client requests, will time-out. If you already changed this setting, you can click No. The installer displays this panel to confirm the update.
After installation, follow the server setup instructions.
|If the Windows installer hangs on the Computing Space Requirements screen, there is an issue with your setup or installation environment, such as other running applications.|
You can implement this workaround to complete the installation:
Stop any other browsers and applications that were running when you started installing Couchbase Server.
Kill the installation process and uninstall the failed setup.
Delete or rename the temp location under C:\Users\[logonuser]\AppData\Temp.
Reboot and try again.
An unattended installation, also referred to as silent or headless installation, uses a script to install Couchbase Server.
To use the unattended installation process:
Record your installation settings in the wizard installation. These settings are saved to a file, which is used to silently install other nodes of the same version.
Open a Command Terminal or Power and start the installation executable with the
> couchbase_server_version.exe /r /f1your_file_name.iss
Provide your installation options when prompted. Accept an increase in
The wizard completes the server installation and provides a file with your recorded options at C:\Windows\your_file_name.iss.
Refer to a sample installation settings file available in the following gist.
your_file_name.issfile into the same directory as the installer executable. Run the installer from the command-line using the
> couchbase_server_version.exe /s -f1your_file_name.iss
To repeat this process on multiple machines, copy the installation package and the
your_file_name.issfile to the same directory on each machine.