Install

1
2
3
tar xf opensearch-X-linux-x64.tar.gz
sudo mv opensearch-X /opt/opensearch
sudo chown -R www-data:www-data /opt/opensearch

Configuration

  • /usr/lib/systemd/system/opensearch.service
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
[Unit]
Description=OpenSearch is the flexible, scalable, open-source way to build solutions for data-intensive applications.
Documentation=https://opensearch.org/docs/opensearch/index/
Wants=network-online.target

[Service]
Type=simple
Environment=OPENSEARCH_JAVA_HOME="/opt/opensearch/jdk"
WorkingDirectory=/opt/opensearch
User=www-data
Group=www-data
ExecStart=/opt/opensearch/bin/opensearch

[Install]
WantedBy=multi-user.target

/opt/opensearch/config/opensearch.yml

  • Disable https
1
2
3
network.host: 0.0.0.0
discovery.type: single-node
plugins.security.disabled: true

Usages

  • Testing connection
1
curl -X GET http://127.0.0.1:9200/?human=true&pretty=true