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 --versionPython 3.7.3Note
By default, CentOS 8 doesn't have an unversioned system-wide
pythoncommand to avoid locking users to a specific version of Python. One way to fix this is to setpython3the alternative forpythonby running:sudo alternatives --set python /usr/bin/python3.Starting from Ubuntu 20.04,
pythonisn't available anymore. An easy fix is to installsudo apt install python-is-python3. -
wgetorcurlis available.The instructions use the
wgetcommand to download files. If you prefer to usecurl, you can replacewgetwithcurl -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
wgetcommand.$ wget https://downloads.yugabyte.com/releases/2.11.2.0/yugabyte-2.11.2.0-b89-linux-x86_64.tar.gz
OR:$ wget https://downloads.yugabyte.com/releases/2.11.2.0/yugabyte-2.11.2.0-b89-el8-aarch64.tar.gz -
Extract the package and then change directories to the YugabyteDB home.
$ tar xvfz yugabyte-2.11.2.0-b89-linux-x86_64.tar.gz && cd yugabyte-2.11.2.0/
OR:$ tar xvfz yugabyte-2.11.2.0-b89-el8-aarch64.tar.gz && cd yugabyte-2.11.2.0/
Configure YugabyteDB
To configure YugabyteDB, run the following shell script.
$ ./bin/post_install.sh
Next step
Create a local cluster