To build and run Meilisearch version 1.4.2 on CentOS 7.4, you’ll need to follow these steps:
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
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
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
Compile the project:
cargo build --release
This command builds the executable in target/release/meilisearch.
Once the build is complete, you can run Meilisearch:
./target/release/meilisearch
This starts the Meilisearch server on the default port 7700.
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.