我正在使用AWS服务器ec2 ubuntu实例上的neo4j。
一切都很好,但是当我创建ec2实例的图像时,实例必须重新启动,因为我无法运行我的neo4j数据库服务器。
我在console.log文件中看到的唯一内容如下:
2015-05-01 16:50:18.135+0000 INFO [API] Successfully shutdown Neo4j Server.
2015-05-01 16:50:18.304+0000 INFO [API] Successfully stopped database
2015-05-01 16:50:18.304+0000 INFO [API] Successfully shutdown database.
2015-05-01 16:53:34.972+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2015-05-01 17:08:22.223+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2015-05-01 17:08:49.951+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2015-05-01 17:10:06.715+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2015-05-01 17:10:44.192+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2015-05-01 17:12:36.974+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2015-05-01 17:13:28.628+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2015-05-01 17:22:54.172+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2015-05-01 17:25:42.891+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2015-05-01 17:30:59.901+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2015-05-01 17:32:29.831+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2015-05-01 17:43:13.906+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
服务器总是说它无法启动,我不知道该做什么或问题出在哪里..
有什么想法吗?
答案 0 :(得分:0)
因为服务器默认开始于(1200000ms)2分钟,所以它将在时间限制内失败 1.检查/path/data/graph.db(或您的数据库)/message.log 2.set /path/conf/neo4j-server.properties并在其中添加第3步
3.org.neo4j.server.startup_timeout = 0
该集合用于禁用启动限制行为。
答案 1 :(得分:0)
您应为您的实例分配 IAM角色。 当neo4j加载时,它执行以下脚本:
/etc/neo4j/pre-neo4j.sh
正在呼叫:
aws ec2 describe-tags ...