How to Install Typesense on Debian Latest
Typesense is an open-source search engine that allows developers to create a fast and reliable search experience for their users. In this tutorial, we will show you how to install Typesense on Debian Latest.
Prerequisites
Before starting the installation process, make sure you have:
- a Debian Latest instance
- root access or a user with sudo privileges
- an active internet connection
Step 1 - Update System
To ensure that our system is up-to-date, we need to update the repositories and upgrade the system.
sudo apt update && sudo apt upgrade -y
Step 2 - Install Dependencies
Typesense requires several dependencies that need to be installed beforehand:
sudo apt install curl wget unzip -y
Step 3 - Download and Extract Typesense
You can download the latest version of Typesense from their official website or use the following command:
wget https://dl.typesense.org/releases/0.21.0/typesense-server-0.21.0-amd64.deb
Then, you can extract the downloaded package using the following command:
sudo dpkg -i typesense-server-0.21.0-amd64.deb
Step 4 - Start and Verify Typesense
To start Typesense, use the following command:
sudo typesense-server --data-dir=data /etc/typesense/typesense-server.ini
You should see something like:
INFO [] Found healthy node at http://127.0.0.1:8108
...
To verify that Typesense is running correctly, you can use the following command:
curl http://localhost:8108/health
You should see:
{"ok":true}
Conclusion
In this tutorial, we have shown you how to install Typesense on Debian Latest. If you have any issues, please refer to Typesense's official documentation.