Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Working with Couchbase

In this hands-on lab, we will install and initialize a Couchbase server on CentOS 7. Once that is complete, we will create a bucket and create some test data.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 17, 2025
Duration
1h 0m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Install Couchbase
    1. Get the Couchbase RPM for version 6 and install it:
    wget https://packages.couchbase.com/releases/6.0.0/couchbase-server-community-6.0.0-centos7.x86_64.rpm 
    
    sudo yum install -y couchbase-server-community-6.0.0-centos7.x86_64.rpm 
    
    1. Set the file limits in the limits.conf file:
    sudo vim /etc/security/limits.conf
    

    Add these lines:

    * soft nofile 75000
    * hard nofile 75000
    
    1. Start the Couchbase server:
    sudo /opt/couchbase/bin/couchbase-server \-- -noinput -detached 
    
  2. Challenge

    Create the Bucket and Test Data
    1. From the GUI, simply add bucket.

    2. From the CLI

    couchbase-cli bucket-create -c 127.0.0.1:8091 --username Administrator --password Omgpassword! --bucket testdata --bucket-type couchbase --bucket-ramsize 128
    
    1. Connect to couchbase using cbq
       cbq -e http://127.0.0.1:8091 -u=Administrator
    
    1. Locate the data in the ~/data folder. There is a formatted version and there is an unformatted version. Either way, create a query from this data and run it against the bucket.
    INSERT INTO `testdata` (KEY,VALUE) VALUES
    ("Employee_Duck",
    {"name":"Donald Duck",
    "status":"active",
    "phone":{"primary":"5551212","secondary":"8329050"}}),
    ("Employee_James",
    {"name":"Jimmy James",
    "status":"active",
    "phone":{"primary":"8001234","secondary":"none"}}),
    ("Employee_Solo",
    {"name":"Han Solo",
    "status":"retired",
    "phone":{"primary":"none","secondary":"none"}}),
    ("Employee_Bacca",
    {"name":"Chew Bacca",
    "status":"retired",
    "phone":{"primary":"6123478","secondary":"6461234"}});
    
  3. Challenge

    Confirm the Data Was Created Correctly
    1. In the GUI, the bucket will show the documents that were created, however, to make the bucket searchable, you will need to create an index:
    CREATE PRIMARY INDEX `td_idx` ON `testdata`;
    

    Then confirm that the data can be queried:

    Select * from `testdata`;
    
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight