Practice
March 1, 2025Less than 1 minute
Practice
Starting from Elasticsearch 8.x, security authentication is enabled by default, and curl cannot be used to access it directly. You need to use a username and password for authentication. To disable security authentication:
sudo vi /etc/elasticsearch/elasticsearch.yml
xpack.security.enabled: false
sudo systemctl restart elasticsearch