1. Install YugabyteDB
Prerequisites
-
One of the following operating systems:
-
CentOS 7 or later
-
Ubuntu 16.04 or later
-
-
Verify that you have Python 2 or 3 installed.
$ python --version
Python 3.7.3
Note
By default, CentOS 8 doesn't have an unversioned system-wide
python
command to avoid locking users to a specific version of Python. One way to fix this is to setpython3
the alternative forpython
by running:sudo alternatives --set python /usr/bin/python3
.Starting from Ubuntu 20.04,
python
isn't available anymore. An easy fix is to installsudo apt install python-is-python3
. -
wget
orcurl
is available.The instructions use the
wget
command to download files. If you prefer to usecurl
, you can replacewget
withcurl -O
.To install
wget
:- CentOS:
yum install wget
- Ubuntu:
apt install wget
To install
curl
:- CentOS:
yum install curl
- Ubuntu:
apt install curl
- CentOS:
-
Each tablet maps to its own file, so if you experiment with a few hundred tables and a few tablets per table, you can soon end up creating a large number of files in the current shell. Make sure to configure ulimit values.
Download YugabyteDB
-
Download the YugabyteDB package using the following
wget
command.$ wget https://downloads.yugabyte.com/releases/2.13.0.0/yugabyte-2.13.0.0-b42-linux-x86_64.tar.gz
OR:$ wget https://downloads.yugabyte.com/releases/2.13.0.0/yugabyte-2.13.0.0-b42-el8-aarch64.tar.gz
-
Extract the package and then change directories to the YugabyteDB home.
$ tar xvfz yugabyte-2.13.0.0-b42-linux-x86_64.tar.gz && cd yugabyte-2.13.0.0/
OR:$ tar xvfz yugabyte-2.13.0.0-b42-el8-aarch64.tar.gz && cd yugabyte-2.13.0.0/
Configure YugabyteDB
To configure YugabyteDB, run the following shell script.
$ ./bin/post_install.sh
Next step
Create a local cluster