gpt4 book ai didi

java - 通过java代码生成db后Neo4j 2.2.1服务器无法启动

转载 作者:行者123 更新时间:2023-12-01 11:36:57 25 4
gpt4 key购买 nike

从新的 graph.db 文件夹开始。我使用嵌入式图形数据库、java 和 cypher 查询来创建节点。看来节点创建成功了。已调试并检查结果对象。

我现在想启动 neo4j 服务器来检查浏览器中的节点。但是,它给出了以下消息:

bash-4.2$ ./neo4j-community-2.2.1/bin/neo4j start

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

WARNING: not changing user process [2868]... waiting for server to be ready...... Failed to start within 120 seconds. Neo4j Server may have failed to start, please check the logs.

我检查了console.log和message.log。但没有错误。我不知道要在日志文件中读取什么内容以供诊断。请指教。

控制台.log:

2015-04-26 05:14:47.278+0000 INFO

[API] Setting startup timeout to: 120000ms based on 120000

2015-04-26 05:14:49.700+0000 INFO

[API] Successfully shutdown Neo4j Server.

2015-04-26 05:15:24.684+0000 INFO

[API] Setting startup timeout to: 120000ms based on 120000

2015-04-26 05:15:26.477+0000 INFO

[API] Successfully shutdown Neo4j Server.

2015-04-26 05:19:54.699+0000 INFO

[API] Setting startup timeout to: 120000ms based on 120000

2015-04-26 05:19:56.521+0000 INFO

[API] Successfully shutdown Neo4j Server.

我还应该在哪里查找错误?如何启动 neo4j 服务器?

编辑:

检查了 messages.log。正文如下。所以看起来它可以通过代码关闭:

2015-04-26 10:05:21.169+0000 INFO  [org.neo4j]: --- STARTED diagnostics for KernelDiagnostics:StoreFiles END ---
2015-04-26 10:05:21.356+0000 INFO [org.neo4j]: Database is now ready
2015-04-26 10:06:05.470+0000 INFO [org.neo4j]: Index population started: [:PRODUCT(id) [provider: {key=lucene, version=1.0}]]
2015-04-26 10:06:05.653+0000 INFO [org.neo4j]: Schema state store has been cleared.
2015-04-26 10:06:05.695+0000 INFO [org.neo4j]: Index population completed. Index is now online: [:PRODUCT(id) [provider: {key=lucene, version=1.0}]]
2015-04-26 10:06:05.764+0000 INFO [org.neo4j]: Schema state store has been cleared.
2015-04-26 10:06:18.148+0000 INFO [org.neo4j]: Sampled index :PRODUCT(id) with 2 unique values in sample of avg size 2 taken from index containing 2 entries
2015-04-26 10:06:46.028+0000 INFO [org.neo4j]: Shutdown started
2015-04-26 10:06:46.031+0000 INFO [org.neo4j]: Database is now unavailable
2015-04-26 10:06:46.246+0000 INFO [org.neo4j]: About to rotate counts store at transaction 8 to [/home/dedhiaj/neo4j-community-2.2.1/data/graph.db/neostore.counts.db.b], from [/ho
me/dedhiaj/neo4j-community-2.2.1/data/graph.db/neostore.counts.db.a].
2015-04-26 10:06:46.250+0000 INFO [org.neo4j]: Successfully rotated counts store at transaction 8 to [/home/dedhiaj/neo4j-community-2.2.1/data/graph.db/neostore.counts.db.b], from
[/home/dedhiaj/neo4j-community-2.2.1/data/graph.db/neostore.counts.db.a].
2015-04-26 10:06:47.495+0000 INFO [org.neo4j]: NeoStore closed
2015-04-26 10:06:47.496+0000 INFO [org.neo4j]: --- STOPPING diagnostics START ---
2015-04-26 10:06:47.497+0000 INFO [org.neo4j]: --- STOPPING diagnostics END ---

最佳答案

同时增加 Linux 操作系统的“ulimit”>

关于java - 通过java代码生成db后Neo4j 2.2.1服务器无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29874200/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com