Elasticsearch (ELK)/Elasticsearch
1. Installing & Starting Elastic Search
Velody
2020. 5. 25. 11:25
Installing Elastic Search
brew tap elastic/tap
brew install elastic/tap/elasticsearch-full
Usefule Commands
// Start Elasticsearch
brew services start(restart, stop etc...) elasticsearch
// See Detail Info
brew info elasticsearch
// See Daemon List and Status
brew services list
// See Log
tail -f /usr/local/var/log/elasticsearch/elasticsearch_yoonjongsung.log
Check if Elasticsearch is running correctly
curl localhost:9200
CORS 문제해결
/usr/local/etc/elasticsearch/elasticsearch.yml 하단 코드 추가
http.cors.enabled : true
http.cors.allow-origin : "*"
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length
참고 : https://www.elastic.co/guide/en/elasticsearch/reference/7.x/brew.html
Install Elasticsearch on macOS with Homebrew | Elasticsearch Reference [7.x] | Elastic
Install Elasticsearch on macOS with Homebrewedit Elastic publishes Homebrew formulae so you can install Elasticsearch with the Homebrew package manager. To install with Homebrew, you first need to tap the Elastic Homebrew repository: Once you’ve tapped t
www.elastic.co