Skip to content

Instantly share code, notes, and snippets.

@tpayet
Created June 24, 2024 07:49
Show Gist options
  • Save tpayet/5a775d3714833fa35eca293f1c36a3b3 to your computer and use it in GitHub Desktop.
Save tpayet/5a775d3714833fa35eca293f1c36a3b3 to your computer and use it in GitHub Desktop.
Meilisearch 1.4.2 on CentOS 7.4

To build and run Meilisearch version 1.4.2 on CentOS 7.4, you’ll need to follow these steps:

1. Install Required Dependencies

First, make sure your system is up-to-date and install the necessary dependencies:

sudo yum update
sud  yum install -y gcc gcc-c++ make cmake openssl-devel

2. Install Rust

Meilisearch is built using Rust, so you need to install it:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env

3. Download Meilisearch

Fetch the specific version of Meilisearch:

curl -L https://github.com/meilisearch/Meilisearch/archive/refs/tags/v1.4.2.tar.gz -o Meilisearch-1.4.2.tar.gz
tar xvzf Meilisearch-1.4.2.tar.gz
cd Meilisearch-1.4.2

4. Build Meilisearch

Compile the project:

cargo build --release

This command builds the executable in target/release/meilisearch.

5. Run Meilisearch

Once the build is complete, you can run Meilisearch:

./target/release/meilisearch

This starts the Meilisearch server on the default port 7700.

Configuring the Firewall

If you have firewalls enabled, you might need to allow traffic on port 7700:

sudo firewall-cmd --zone=public --add-port=7700/tcp --permanent
sudo firewall-cmd --reload

This should get Meilisearch up and running on your CentOS 7.4 system. Make sure you're in the directory containing the Meilisearch executable when you start the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment