Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 7 additions & 16 deletions docs/install-harperdb/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ These instructions assume that the following has already been completed:
3. A non-root user account dedicated to HarperDB with sudo privileges exists
4. An additional volume for storing HarperDB files is attached to the Linux instance
5. Traffic to ports 22 (SSH), 9925 (HarperDB HTTP or HTTPS), and 9926 (HarperDB Custom Functions) is permitted
6. For this example, we will use an AWS Ubuntu Server 18.04 LTS m5.large EC2 Instance with an additional General Purpose SSD EBS volume and the default “ubuntu” user account.

For this example, we will use an AWS Ubuntu Server 18.04 LTS m5.large EC2 Instance with an additional General Purpose SSD EBS volume and the default “ubuntu” user account.

---

If you wish to install locally or already have a configured server, skip to [Install and Start HarperDB](#install)

### (Optional) LVM Configuration
Logical Volume Manager (LVM) can be used to stripe multiple disks together to form a single logical volume. If striping disks together is not a requirement, skip these steps.

Expand Down Expand Up @@ -67,7 +70,7 @@ Create logical volume
lvcreate -n hdb_lv -i $free_disks_qty -l 100%FREE hdb_vg
```

Configure Data Volume
### Configure Data Volume

Run `lsblk` and note the device name of the additional volume

Expand Down Expand Up @@ -96,7 +99,7 @@ Create a fstab entry to mount the filesystem on boot
echo "LABEL=hdb_data /home/ubuntu/hdb ext4 defaults,noatime 0 1" | sudo tee -a /etc/fstab
```

Configure Linux and Install Prerequisites
### Configure Linux and Install Prerequisites
If a swap file or partition does not already exist, create and enable a 2GB swap file

```bash
Expand All @@ -114,18 +117,6 @@ echo "ubuntu soft nofile 500000" | sudo tee -a /etc/security/limits.conf
echo "ubuntu hard nofile 1000000" | sudo tee -a /etc/security/limits.conf
```

Verify Python v3.6, v3.7, v3.8, or v3.9 is installed.

```bash
python3 --version
```

Install build-essential

```bash
sudo apt-get update && sudo apt-get install -y build-essential
```

Install Node Version Manager (nvm)

```bash
Expand All @@ -146,7 +137,7 @@ Install Node.js using nvm ([read more about specific Node version requirements h
nvm install 14.19.1
```

Install and Start HarperDB
### <a id="install"></a> Install and Start HarperDB
Install HarperDB

```bash
Expand Down