mkdir ~/devtools
- Copy the file to ~/devtools
cp /mnt/c/Users/$USER/Downloads/opensearch-2.11.1-linux-x64.tar.gz .
- Extract the opensearch tarball
tar -xvzf opensearch-2.11.1-linux-x64.tar.gz .
- change directory security plugin
cd ~/devtools/opensearch-2.11.1/plugins/opensearch-security/tools
- Install the self sign certificates
./install_demo_configuration.sh
- Select the options as below
OpenSearch Security Demo Installer
** Warning: Do not use on production or public reachable systems **
Install demo certificates? [y/N] y
Initialize Security Modules? [y/N] y
Cluster mode requires maybe additional setup of:
- Virtual memory (vm.max_map_count)
Enable cluster mode? [y/N] N
- Change directory to ~/devtools/opensearch-2.11.1
cd ~/devtools/opensearch-2.11.1
./bin/opensearch
curl --insecure -u admin:admin https://localhost:9200/
{
"name" : "SHI58495EU1DF77",
"cluster_name" : "opensearch",
"cluster_uuid" : "Ke7R_7hKRDiPyvF0Qn462g",
"version" : {
"distribution" : "opensearch",
"number" : "2.11.1",
"build_type" : "tar",
"build_hash" : "6b1986e964d440be9137eba1413015c31c5a7752",
"build_date" : "2023-11-29T21:43:10.135035992Z",
"build_snapshot" : false,
"lucene_version" : "9.7.0",
"minimum_wire_compatibility_version" : "7.10.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
}