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
'Elasticsearch (ELK) > Elasticsearch' 카테고리의 다른 글
4. 마스터 노드와 데이터 노드 (0) | 2020.05.26 |
---|---|
3-2. Elasticsearch 시스템 구조 - 인덱스와 샤드 (0) | 2020.05.26 |
3-1. Elasticsearch 시스템 구조 - 클러스터 구성 (0) | 2020.05.26 |
2. Elasticsearch 환경 설정 (0) | 2020.05.25 |
Elasticsearch 참고문헌 (0) | 2020.05.16 |