Install opensearch on Ubuntu 22.04
curl -o- https://artifacts.opensearch.org/publickeys/opensearch.pgp | sudo apt-key add -
echo "deb https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/apt stable main" | sudo tee /etc/apt/sources.list.d/opensearch-2.x.list
sudo apt update
sudo apt list -a opensearch
sudo apt -y install opensearch=2.5.0
nano /etc/opensearch/opensearch.yml
#(add the following text)
network.host: localhost
node.name: node-1
plugins.security.disabled: true
systemctl start opensearch
systemctl enable opensearch
curl -X GET http://localhost:9200/