TYPESense is an open-source search engine solution that delivers fast and relevant results to users. In this tutorial, we will guide you through the installation process of Typesense on Fedora CoreOS latest using the CLI.
Before getting started, you need to ensure that you have the following prerequisites:
Follow the steps given below to successfully install Typesense on your Fedora CoreOS:
To download the latest version of the Typesense binary, visit the Typesense downloads page and copy the link address of the appropriate version that suits your system architecture.
Next, use the curl command to download the Typesense binary to your system.
$ curl -LO <link from Typesense download page>
Once you have downloaded the Typesense binary, extract the contents of the archive using the 'tar' command.
$ tar -xvf typesense-server-0.21.0-linux-amd64.tar.gz
After extracting the archive, move the Typesense binary to the '/usr/local/bin' directory.
$ sudo mv typesense-server /usr/local/bin/
To start Typesense, you need to create a configuration file. Create a new file named 'typesense.ini' and place it in the '/etc' directory.
$ sudo nano /etc/typesense.ini
Copy the following content to 'typesense.ini' and modify as per your requirements.
node {
host = "0.0.0.0" # Bind IP address
port = 8108 # Bind Port
}
data-dir = "/opt/typesense-data"
api-key=xxxxxxxxxxxx
# External Ports: Used for intra-cluster communication
# Set to random port in Fedora
# HTTP -> used for API requests
port=8108
# Swarm Ports: Used for cluster communication
# Used a default port as we will not be clustering
swarm-port=9071
You are now ready to start the Typesense server. Use the following command to start Typesense.
$ sudo typesense-server --config /etc/typesense.ini
Once the Typesense server is running successfully, you will see output similar to the following:
Typesense server started successfully.
To confirm that Typesense is running successfully, open a web browser and navigate to the following URL:
http://<your-server-address>:8108/health
You should see output similar to the following:
{"ok":true}
Congratulations! You have successfully installed Typesense on your Fedora CoreOS latest. You are now ready to start configuring and using Typesense for your search engine requirements.
In this tutorial, we have covered the step-by-step procedure to install the Typesense search engine on Fedora CoreOS latest. You can take these instructions as a guide to install Typesense on other Linux distributions as well.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!