18
19

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.

apache solr インストール

Posted at

1. Javaインストール

$ sudo yum install java-1.6.0-openjdk

2. solr本体のインストール

/var/local/solr-x.x.x/ に配置する前提で進めます。

$ wget http://ftp.jaist.ac.jp/pub/apache/lucene/solr/4.6.0/solr-4.6.0.tgz 
$ tar -zxvf solr-4.6.0.tgz
$ sudo cp -R solr-4.6.0 /var/local/

※ 下記は任意の名前で置き換える。

  • [db_name]
  • [collection_name]
$ cd /var/local
$ sudo chown -R :wheel solr-4.6.0/
$ cd solr-4.6.0
$ sudo cp -R example [db_name]
$ cd [db_name]/solr
$ sudo mv collection1 [collection_name]
$ cd  [collection_name]
$ sudo echo "name=[collection_name]" ¦ sudo tee core.properties

3. 起動

# cd /var/local/solr-4.6.0/[db_name]
# java -jar start.jar >> /var/log/solr.log 2>&1 &

4. 確認

http://192.168.33.10:8983/solr/ にアクセスしてみる。
管理画面が表示されればOK (192.168.33.10 に立てた場合)

18
19
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
18
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?