Prerequisites
Before you begin, ensure your system meets the following requirements:- Linux
- macOS
- Docker
Operating system
- CentOS 7 or later
- Ubuntu 18.04 or later
- Red Hat Enterprise Linux (RHEL) 7 or later
- Python 3.6 or later
- wget or curl
- 2 CPU cores (4 recommended)
- 4 GB RAM minimum (8 GB recommended)
- 10 GB disk space
Step 1: Download YugabyteDB
Download the latest stable release of YugabyteDB:- Linux (x86)
- Linux (ARM)
- macOS
- Docker
For the latest version numbers and download links, visit the YugabyteDB releases page.
Step 2: Configure YugabyteDB
- Linux / macOS
- Docker
Run the post-installation script to configure YugabyteDB:This script:
- Sets up the necessary directory structure
- Configures system libraries
- Prepares the environment for running YugabyteDB
Step 3: Start a local cluster
Create a single-node cluster for local development:- Linux / macOS
- Docker
The
yugabyted utility is a single command to create and manage local clusters. It automatically starts both YB-Master (metadata manager) and YB-TServer (data server) processes.Step 4: Verify the cluster
Check that your cluster is running:- Linux / macOS
- Docker
Step 5: Connect to the database
Connect using the YSQL shell (PostgreSQL-compatible interface):- Linux / macOS
- Docker
Step 6: Run your first queries
Let’s create a simple table and insert some data:Step 7: Access the web UI
YugabyteDB includes a built-in web interface for monitoring and administration:Open the UI
Navigate to http://127.0.0.1:15433 in your browser.
The web UI runs on port 15433 by default. No authentication is required for local development clusters.
What’s next?
Now that you have YugabyteDB running, explore more:Build an application
Connect from Java, Python, Go, Node.js, or other languages
Core features
Learn about sharding, replication, and distributed transactions
Sample data
Load sample datasets to explore YugabyteDB features
Production deployment
Deploy a multi-node cluster for production use
Common commands
Here are some useful commands for managing your cluster:Troubleshooting
Port already in use
Port already in use
If you see “address already in use” errors:
- Check what’s using the port:
lsof -i :5433 - Stop the conflicting service or use a different port
- On macOS Monterey, disable AirPlay or use port forwarding
Cannot connect to cluster
Cannot connect to cluster
If you can’t connect:
- Verify the cluster is running:
yugabyted status - Check firewall settings
- Ensure you’re using the correct IP address (127.0.0.1 for local)
- Review logs in
~/var/logs/for errors
Performance issues
Performance issues
For slow queries:
- Ensure you have adequate RAM (4 GB minimum)
- Use SSDs for better I/O performance
- Check CPU usage isn’t maxed out
- Review query plans with
EXPLAIN ANALYZE
Docker container won't start
Docker container won't start
If Docker fails:
- Ensure Docker has enough resources allocated
- Check Docker logs:
docker logs yugabyte - Try removing and recreating:
docker rm yugabyte - Verify port conflicts with
docker ps

