windows10 Elasticsearchをインストールする手順
- 作成日 2020.05.15
- 更新日 2020.07.17
- elasticsearch windows
- windows10
![windows10 Elasticsearchをインストールする手順](https://mebee.info/wp-content/uploads/2019/11/elasticsearch.png)
大量データを高速に文字列で検索できるオープソースの全文検索エンジンである「elasticsearch」のwindows10へのインストール手順を記述してます。
環境
- OS windows10 64bit
- Elasticsearch 7.7.0
Elasticsearchダウンロード
こちらのサイトからダウンロードします。windowsを選択します。
![](https://mebee.info/wp-content/uploads/2020/05/elasticsearch-windows.png)
「elasticsearch-7.7.0-windows-x86_64.zip」がダウンロードされます。
![](https://mebee.info/wp-content/uploads/2020/05/image-161.png)
Elasticsearch起動
ダウンロードしたファイルを解凍して適当な場所に移動させます。
自分の場合は名前を変更して「elasticsearch」にしてC直下に置きました
![](https://mebee.info/wp-content/uploads/2020/05/image-162.png)
binファルダ配下になる「elasticsearch.bat」をダブルクリックして起動します。
![](https://mebee.info/wp-content/uploads/2020/05/image-163.png)
下記を実行しても同じです。
C:\elasticsearch\bin>elasticsearch.bat
起動するとコマンドプロンプトが立ち上がり、ステータスが表示されていきます。
![](https://mebee.info/wp-content/uploads/2020/05/image-164.png)
ブラウザから http://localhost:9200にアクセスし、下記のデータが取得できていれば起動成功です。
![](https://mebee.info/wp-content/uploads/2020/05/image-165.png)
外部からの接続も許可しておきます。
configフォルダ配下の「elasticsearch.yml」を編集します。
![](https://mebee.info/wp-content/uploads/2020/05/image-166.png)
編集内容
#network.host: 192.168.0.1
network.host: 0.0.0.0
http.port: 9200
transport.host: localhost
transport.tcp.port: 9300
elasticsearchを再起動します。
「Ctrl + C」で停止します。
![](https://mebee.info/wp-content/uploads/2020/05/image-167-1024x238.png)
再度起動します。
![](https://mebee.info/wp-content/uploads/2020/05/image-168.png)
別マシンからブラウザから http://プライベートIP:9200 にアクセスできることを確認します。
![](https://mebee.info/wp-content/uploads/2020/05/elasticsearch-windows-1.png)
-
前の記事
Nuxt.js ライブラリ「vue-heroicons」をインストールしてSVGアイコンを利用する 2020.05.15
-
次の記事
Laravel7 Sessionの使い方 2020.05.16
コメントを書く