๋กœ์ผ“๐Ÿพ
article thumbnail

Elasticsearch 5.0 ์ดํ›„์—์„œ๋Š” root์—์„œ elasticsearch๋ฅผ ์‹คํ–‰ํ•  ์ˆ˜ ์—†๊ฒŒ ํ–ˆ๊ธฐ ๋•Œ๋ฌธ์— sudo ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค๊ณ  Elasticsearch๋ฅผ ์‹คํ–‰ ํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

 

 

๊ณ„์ •์„ ์ƒˆ๋กœ ์ƒ์„ฑ ํ•œ ํ›„ ๊ถŒํ•œ์„ ๋ถ€์—ฌํ•˜์—ฌ ๊ทธ ๊ณ„์ •์œผ๋กœ ์‹คํ–‰ํ•˜๋ฉด ํ•ด๊ฒฐ๋ฉ๋‹ˆ๋‹ค.

 

es ๊ณ„์ •์„ ์ถ”๊ฐ€ํ•ด์ค๋‹ˆ๋‹ค.

$ useradd es

 

ํ•ด๋‹น ๋””๋ ‰ํ„ฐ๋ฆฌ๋ฅผ ์†Œ์œ ์ž๋ฅผ es๋กœ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค.

$ chown -R es:es /usr/share/elasticsearch

 

๊ณ„์ •์„ es๋กœ ๋ฐ”๊ฟ‰๋‹ˆ๋‹ค.

$ su es

 

es ๊ณ„์ •์œผ๋กœ Elastic Search๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

$ /usr/share/elasticsearch/bin/elasticsearch

 

*์ฐธ๊ณ  : /usr/share/elasticsearch ๋””๋ ‰ํ„ฐ๋ฆฌ ๋ง๊ณ ๋„ ์ถ”๊ฐ€์ ์œผ๋กœ elasticsearch ์‹คํ–‰์— ํ•„์š”ํ•œ elaticsearch ๊ด€๋ จ ๋””๋ ‰ํ„ฐ๋ฆฌ์˜ ์†Œ์œ ์ž๋ฅผ es๋กœ ๋ณ€๊ฒฝํ•ด์ค˜์•ผ ํ•ฉ๋‹ˆ๋‹ค.

profile on loading

Loading...