# 2. Setup

CouchDB 2.x can be deployed in either a single-node or a clustered configuration. This section covers the first-time setup steps required for each of these configurations.

- 2.1. Single Node Setup
- 2.2. Cluster Set Up
  - 2.2.1. Ports and Firewalls
  - 2.2.2. Configure and Test the Communication with Erlang
  - 2.2.3. Preparing CouchDB nodes to be joined into a cluster
  - 2.2.4. The Cluster Setup Wizard
  - 2.2.5. The Cluster Setup API