Help us understand the problem. What is going on with this article?

neo4jインストール手順@ubuntu

More than 5 years have passed since last update.

ubuntuDISTRIB_RELEASE=12.04でneo4jをインストールした時のメモ

$ sudo -s
# wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add - 
# echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list
# apt-get update
# apt-get install neo4j
$ cd /var/lib/neo4j
$ ./bin/neo4j start

ここで次のようなwarningがでる。

WARNING! You are using an unsupported version of the JDK. Please use JDK 6.

OpneJDKではダメみたいなので、Sun-java6を入れて、切り替える。

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
sudo apt-get install oracle-java7-installer
screnn (OK)(OK)

$ sudo update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-6-oracle/jre/bin/java          1063      auto mode
  1            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      manual mode
  2            /usr/lib/jvm/java-6-oracle/jre/bin/java          1063      manual mode
  3            /usr/lib/jvm/java-7-oracle/jre/bin/java          1062      manual mode

再度起動するも、下記のwarningが出る。

WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.

ファイルのシステムリソースが足らないようなので設定を変える。

$ sudo vi /etc/security/limits.conf
下記4行追加
---
neo4j        hard        nofile        100000
neo4j        soft        nofile        40000
root         hard        nofile        100000
root         soft        nofile        40000
---

$ sudo vi /etc/pam.d/su
下記1行追加
---
session    required   pam_limits.so
---

外部からadminツールを使うときは、下記のようにする。

sudo vi ./conf/neo4j-server.properties

下記をチェック外して、IPを書き換える。
org.neo4j.server.webserver.address=0.0.0.0

$ ./bin/neo4j start

とりあえずここまで。

参考

http://docs.neo4j.org/chunked/1.6.2/configuration-linux-notes.html#_setting_the_number_of_open_files

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした