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