|
| 1 | +# Install & Run YugabyteDB |
| 2 | + |
| 3 | +<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><a href="https://docs.yugabyte.com/preview/tutorials/quick-start/linux/">Yugabyte Documentation</a></td><td><a href="../../.gitbook/assets/yugabyte.svg">yugabyte.svg</a></td></tr><tr><td><a href="https://filecoinproject.slack.com/archives/C06LF5YP8S3">Filecoin Slaxk - #fil-curio-help</a></td><td><a href="../../.gitbook/assets/Filecoin.svg.png">Filecoin.svg.png</a></td></tr><tr><td><a href="https://inviter.co/yugabytedb">Yugabyte Slack</a></td><td><a href="../../.gitbook/assets/yugabyte.svg">yugabyte.svg</a></td></tr></tbody></table> |
| 4 | + |
| 5 | +### Set ulimit configuration |
| 6 | + |
| 7 | +{% hint style="info" %} |
| 8 | + Before starting Yugabyte, you must increase the default ulimit values to ensure system limits do not interfere with the database. |
| 9 | +{% endhint %} |
| 10 | + |
| 11 | +To do this: |
| 12 | + |
| 13 | +#### **Persist new limits across reboots** |
| 14 | + |
| 15 | +Add these lines to `/etc/security/limits.conf`: |
| 16 | + |
| 17 | +```sh |
| 18 | +echo "$(whoami) soft nofile 1048576" | sudo tee -a /etc/security/limits.conf |
| 19 | +echo "$(whoami) hard nofile 1048576" | sudo tee -a /etc/security/limits.conf |
| 20 | +This ensures the increased limits are automatically applied to future sessions. |
| 21 | +``` |
| 22 | + |
| 23 | +#### **Apply limit immediately (for current shell only)** |
| 24 | + |
| 25 | +```sh |
| 26 | +ulimit -n 1048576 |
| 27 | +Verify: |
| 28 | +ulimit -n |
| 29 | +``` |
| 30 | + |
| 31 | +{% hint style="success" %} |
| 32 | +This should output 1048576. |
| 33 | +{% endhint %} |
| 34 | + |
| 35 | +### Install Yugabyte |
| 36 | + |
| 37 | +```sh |
| 38 | +wget https://software.yugabyte.com/releases/2.25.1.0/yugabyte-2.25.1.0-b381-linux-x86_64.tar.gz |
| 39 | +tar xvfz yugabyte-2.25.1.0-b381-linux-x86_64.tar.gz |
| 40 | +cd yugabyte-2.25.1.0 |
| 41 | +./bin/post_install.sh |
| 42 | +``` |
| 43 | + |
| 44 | +### Start the DB |
| 45 | + |
| 46 | +```sh |
| 47 | +./bin/yugabyted start \ |
| 48 | + --advertise_address 127.0.0.1 \ |
| 49 | + --master_flags rpc_bind_addresses=127.0.0.1 \ |
| 50 | + --tserver_flags rpc_bind_addresses=127.0.0.1 |
| 51 | +``` |
| 52 | + |
| 53 | +{% hint style="danger" %} |
| 54 | + If you encounter locale-related errors when starting Yugabyte for the first time, run: |
| 55 | +{% endhint %} |
| 56 | + |
| 57 | +```sh |
| 58 | +sudo locale-gen en_US.UTF-8 |
| 59 | +``` |
| 60 | + |
| 61 | +{% hint style="success" %} |
| 62 | +Visit [http://127.0.0.1:15433](http://127.0.0.1:15433) to confirm successful installation. This is the YugabyteDB web UI — it should display the dashboard if the service is running correctly and all nodes are healthy.  |
| 63 | +{% endhint %} |
| 64 | + |
| 65 | +{% hint style="info" %} |
| 66 | +You can also check your Yugabyte cluster details directly in the CLI with: |
| 67 | +{% endhint %} |
| 68 | + |
| 69 | +```sh |
| 70 | +./bin/yugabyted status |
| 71 | +``` |
0 commit comments