mac安装配置neo4j

  • 2.4. Mac OS installation

    This section describes how to install Neo4j on Mac OS.

    2.4.1. Unix console application

  • Download the latest release from Neo4j Download Center.

    Select the appropriate tar.gz distribution for your platform.

  • Check that the SHA hash of the downloaded file is correct:

    1. To find the correct SHA hash, go to Neo4j Download Center and click on SHA-256 which will be located below your downloaded file.
    2. Using the appropriate commands for your platform, display the SHA-256 hash for the file that you downloaded.
    3. Ensure that the two are identical.
  • Extract the contents of the archive, using tar -xf <filename>

    Refer to the top-level extracted directory as: NEO4J_HOME

  • Change directory to: $NEO4J_HOME

    Run ./bin/neo4j console

  • Stop the server by typing Ctrl-C in the console.

 

When Neo4j runs in console mode, logs are printed to the terminal.

2.4.2. Mac OS service

Use the standard Mac OS system tools to create a service based on the neo4j command.

2.4.3. Mac OS file descriptor limits

The limit of open file descriptors may have to be increased if a database has many indexes or if there are many connections to the database. The currently configured open file descriptor limitation on your Mac OS system can be inspected with the launchctl limit maxfiles command. The method for changing the limit may differ depending on the version of Mac OS. Consult the documentation for your operating system in order to find out the appropriate command.

If you raise the limit above 10240, then you must also add the following setting to your neo4j.conf file:

dbms.jvm.additional=-XX:-MaxFDLimit

Without this setting, the file descriptor limit for the JVM will not be increased beyond 10240. Note, however, that this only applies to Mac OS. On all other operating systems, you should always leave the MaxFDLimit JVM setting enabled.

 

4.4. Set an initial password

This section describes how to set an initial password for Neo4j.

Use the set-initial-password command of neo4j-admin to define the password for the native user neo4j. This must be performed before starting up the database for the first time.

Syntax:

neo4j-admin set-initial-password <password>

Example 4.2. Use the set-initial-password command of neo4j-admin

Set the password for the native neo4j user to 'h6u4%kr' before starting the database for the first time.

$neo4j-home> bin/neo4j-admin set-initial-password h6u4%kr

If the password is not set explicitly using this method, it will be set to the default password neo4j. In that case, you will be prompted to change the default password at first login.

转载于:https://my.oschina.net/u/2935389/blog/2979143

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值