Typesense is an open-source search engine that provides fast and reliable search results for your application. Installing Typesense on a Fedora server is a straightforward process that can be done in just a few steps.
Before installing Typesense on your Fedora server, you must have the following:
The first step is to install the dependencies required by Typesense. Use the following command to install them.
sudo dnf install -y gcc-c++ make zlib-devel
After installing the dependencies, you can proceed with downloading and installing Typesense. Use the following command to download Typesense:
curl -L https://downloads.typesense.org/typesense-server-0.21.0-linux.x64.tar.gz -o typesense-server-0.21.0-linux.x64.tar.gz
This will download the Typesense server package version 0.21.0 for 64-bit Linux machines.
Extract the downloaded file using the following command:
tar -xvf typesense-server-0.21.0-linux.x64.tar.gz
This will create a directory named typesense-server-0.21.0-linux.x64
in your current working directory.
Next, create a new directory for Typesense to store its data:
sudo mkdir /var/lib/typesense
Change the ownership of the directory to the user that will run Typesense:
sudo chown -R $USER:$USER /var/lib/typesense
Move the extracted Typesense files to the /usr/local/bin
directory:
sudo mv typesense-server-0.21.0-linux.x64/typesense* /usr/local/bin
To start Typesense, use the following command:
nohup typesense-server \
--data-dir=/var/lib/typesense \
--api-key=changeit \
--listen-port=8080 \
--enable-cors
This command starts Typesense as a background process and listens on port 8080. Replace the changeit
placeholder with a secure API key to enable authentication.
You can now access Typesense at http://localhost:8080.
In this tutorial, we walked through the process of installing Typesense on a Fedora server. By following these steps, you should now have a functioning Typesense installation. Congratulations!
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!