我有一个小型数据库,一天前工作正常,但现在,当我尝试启动它时,控制台宣称它成功地打开,但Web服务器挂起。
lsof -i | grep 7474
声明neo4j正在监听端口,“close_wait”正在被告知,这意味着服务器端将其closures。
我得到的唯一新错误是缺lesslogback.groovy,以及logback-test.xml,这很奇怪,因为我在neo4jconfiguration文件中将logging设置为false。 下面是我启动neo4j时的输出:
Starting Neo4j Server...19:31:30,507 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 19:31:30,507 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 19:31:30,508 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/usr/local/Cellar/neo4j/community-1.8.1-unix/libexec/system/lib/neo4j-server-1.8.1.jar!/logback.xml] 19:31:30,536 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@33d6f122 - URL [jar:file:/usr/local/Cellar/neo4j/community-1.8.1-unix/libexec/system/lib/neo4j-server-1.8.1.jar!/logback.xml] is not of type file 19:31:30,632 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set 19:31:30,646 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 19:31:30,650 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 19:31:30,670 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 19:31:30,737 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO 19:31:30,737 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT] 19:31:30,740 |-ERROR in ch.qos.logback.core.joran.action.IncludeAction - Could not find resource corresponding to [custom-logback.xml] 19:31:30,742 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@647109c4 - Registering current configuration as safe fallback point WARNING: not changing user process [2350]... waiting for server to be ready...... OK. Go to http://localhost:7475/webadmin/ for administration interface.
我认为这是一个path问题,所以我将NEO4J_HOME添加到neo4j文件中,如下所示: https ://groups.google.com/forum/#!msg/neo4j/NMVHoflUrHo/warnQUInGCgJ(Bhargava的解决scheme)。
尽pipe如此,问题仍然存在。 思考? 我不知道日志文件做什么,为什么他们需要。
任何人? 真的,即使是一个解释的推测也许是有用的。
这是由于您的系统打开的文件句柄限制。
使用ulimit使用launchctl和ulimit -n来设置两个maxfiles,以便能够正确启动neo4j。
否则,症状是这个过程将会像你所描述的那样超时。