Skip to content

Instantly share code, notes, and snippets.

@CiprianSpiridon
Created June 4, 2025 03:06
Show Gist options
  • Save CiprianSpiridon/bf031d29943499e7b2d7283d0700a75e to your computer and use it in GitHub Desktop.
Save CiprianSpiridon/bf031d29943499e7b2d7283d0700a75e to your computer and use it in GitHub Desktop.
Qdrant + dynamo
#!/bin/bash
# -----------------------------
# ✅ QDRANT INSTALL
# -----------------------------
echo "Installing Qdrant..."
cd /tmp
curl -O https://releases.qdrant.tech/qdrant-x86_64-unknown-linux-gnu.tar.gz
tar -xzf qdrant-x86_64-unknown-linux-gnu.tar.gz
sudo mv qdrant /usr/local/bin
sudo chmod +x /usr/local/bin/qdrant
sudo mkdir -p /var/lib/qdrant
sudo chown forge:forge /var/lib/qdrant
sudo tee /etc/systemd/system/qdrant.service > /dev/null <<EOF
[Unit]
Description=Qdrant Vector Search Engine
After=network.target
[Service]
ExecStart=/usr/local/bin/qdrant
Restart=always
User=forge
WorkingDirectory=/var/lib/qdrant
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reexec
sudo systemctl enable qdrant
sudo systemctl start qdrant
echo "✅ Qdrant running at http://127.0.0.1:6333"
# -----------------------------
# ✅ MONGODB INSTALL
# -----------------------------
echo "Installing MongoDB..."
curl -fsSL https://pgp.mongodb.com/server-7.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor
echo "deb [ arch=amd64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu $(lsb_release -cs)/mongodb-org/7.0 multiverse" | \
sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
sudo apt update
sudo apt install -y mongodb-org
sudo systemctl enable mongod
sudo systemctl start mongod
echo "✅ MongoDB running on port 27017"
# -----------------------------
# ✅ CLEANUP / STATUS
# -----------------------------
echo "🎉 Setup Complete:"
echo "Qdrant → http://localhost:6333"
echo "MongoDB → mongodb://127.0.0.1:27017"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment