10
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SolrをMac OS X Yosemiteにインストールする

Last updated at Posted at 2014-12-28

オープンソースの全文検索エンジン「Solr」を、Mac OS X Yosemite (10.10.1)にインストールします。

前提条件

  • Homebrewをインストールされていること
  • Java 1.7以上がインストールされていること

Solrのインストール

以下のコマンドを実行してSolrをインストールします。

$ brew install solr

起動までの下準備

以下のコマンドを実行し、ログ出力ディレクトリを作成します。(4.10.2の部分はインストールされたSolrのバージョンによって変わってきます。適宜置き換えてください)

$ mkdir -p /usr/local/Cellar/solr/4.10.2/example/logs/

起動 / 動作確認

以下のコマンドを実行し、Solrを起動します。

$ solr start

Started Solr server on port 8983 (pid=92575). Happy searching! と表示されたら以下のURLにアクセスします。

以下のような管理画面が表示されれば、起動成功です。

スクリーンショット 2014-12-28 23.34.06.png

終了

Solrを終了させたいときは、以下のコマンドを実行します。

$ solr stop -all

これにより、起動中のすべてのSolrノードを停止させることができます。

10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?