1080*80 ad

Installing Couchbase Server on CentOS and Rocky Linux

Setting up Couchbase Server on enterprise Linux distributions like CentOS and Rocky Linux is a straightforward process that allows you to leverage a powerful, distributed NoSQL database. This guide covers the essential steps to get Couchbase running smoothly on your server environment.

First, you need to ensure your system can access the Couchbase package repository. This involves adding a specific .repo file to your system’s repository configuration. This file tells your package manager (like yum or dnf) where to find the Couchbase software. It’s also crucial to import the Couchbase GPG key to verify the integrity and authenticity of the packages you download. Using commands involving tools like wget and managing the /etc/yum.repos.d/ or /etc/dnf/repos.d/ directory is the standard approach here.

Once the repository is configured, installing the Couchbase Server package is simple using your distribution’s package manager. A command such as sudo yum install couchbase-server or sudo dnf install couchbase-server will download and install all necessary components.

After the installation completes, the Couchbase Server service needs to be started. On modern Linux systems, this is typically done using systemctl. Commands like sudo systemctl start couchbase-server will launch the database service. It’s also good practice to enable the service to start automatically on boot using sudo systemctl enable couchbase-server. You can check the service’s status with sudo systemctl status couchbase-server.

With the service running, the crucial next step is to perform the initial setup via the web console. Open a web browser and navigate to http://<your_server_ip_or_hostname>:8091. The web UI guides you through configuring the cluster, including agreeing to the terms, setting up nodes (whether it’s a single node or part of a cluster), assigning services (Data, Index, Query, Search, Analytics), creating buckets, and setting up administrative credentials. This initialization is vital for the database to become operational and ready to store your data.

Proper installation ensures you can effectively use Couchbase’s capabilities for high performance, scalability, and flexibility in your data management needs. Remember to configure firewalls to allow traffic on port 8091 and other necessary Couchbase ports for accessing the admin console and inter-node communication if setting up a cluster.

Source: https://kifarunix.com/install-couchbase-server-on-centos-rocky-linux/

900*80 ad

      1080*80 ad