2015-01-23 2 views
0

을 허용하지 나는 임베디드 서버에 연결을 시도하지만 항상이 내 구성 파일입니다봄 데이터 neo4j 내장 된 원격 쉘 연결이

Caused by: java.io.IOException: Unable to lock [email protected] 

을 얻고있다.

@Configuration 
@EnableNeo4jRepositories 
public class Neo4jConfig extends Neo4jConfiguration { 

public static final Setting<Boolean> remote_shell_enabled = Settings.setting("remote_shell_enabled", Settings.BOOLEAN, Settings.TRUE); 
public static final Setting<Boolean> enable_remote_shell = Settings.setting("enable_remote_shell", Settings.BOOLEAN, Settings.TRUE); 
public Neo4jConfig() { 
    setBasePackage("com.repo", "com.model"); 
} 

@Bean 
GraphDatabaseService graphDatabaseService() { 
    return new GraphDatabaseFactory() 
      .newEmbeddedDatabaseBuilder("neo.db2") 
      .setConfig(enable_remote_shell, "true") 
      .newGraphDatabase(); 

} 
} 

답변

0

셸을 어떻게 연결 하시겠습니까?

그냥하지 않는다 :

bin/neo4j-shell

없음-path 매개 변수를! 같은 디렉토리에서 새 데이터베이스를 시작합니다.

+0

그냥 neo4j-shell에 입력하면이 예외가 발생합니다. java.rmi.ConnectException : 연결이 호스트에 거부되었습니다. localhost; 중첩 예외는 다음과 같습니다. \t java.net.ConnectException : Connection refused – erimerturk

관련 문제