在cmd输入
neo4j.bat console
之后出现报错如下
2023-08-07 13:07:50.831+0000 INFO ======== Neo4j 3.5.14 ========
2023-08-07 13:07:50.831+0000 INFO Starting...
2023-08-07 13:07:50.899+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3d74bf60' was successfully initialized, but failed to start. Please see the attached cause exception "C:\Program Files\neo4j-chs-community-3.5.14-windows\logs\debug.log (鎷掔粷璁块棶銆?". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3d74bf60' was successfully initialized, but failed to start. Please see the attached cause exception "C:\Program Files\neo4j-chs-community-3.5.14-windows\logs\debug.log (鎷掔粷璁块棶銆?".
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3d74bf60' was successfully initialized, but failed to start. Please see the attached cause exception "C:\Program Files\neo4j-chs-community-3.5.14-windows\logs\debug.log (鎷掔粷璁块棶銆?".
at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:45)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:187)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:124)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:91)
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:32)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3d74bf60' was successfully initialized, but failed to start. Please see the attached cause exception "C:\Program Files\neo4j-chs-community-3.5.14-windows\logs\debug.log (鎷掔粷璁块棶銆?".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:473)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:180)
... 3 more
Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: C:\Program Files\neo4j-chs-community-3.5.14-windows\logs\debug.log (鎷掔粷璁块棶銆?
at org.neo4j.graphdb.factory.module.PlatformModule.createLogService(PlatformModule.java:324)
at org.neo4j.graphdb.factory.module.PlatformModule.<init>(PlatformModule.java:181)
at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.createPlatform(GraphDatabaseFacadeFactory.java:263)
at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:180)
at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:148)
at org.neo4j.server.database.CommunityGraphFactory.newGraphDatabase(CommunityGraphFactory.java:41)
at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:90)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
... 5 more
Caused by: java.io.FileNotFoundException: C:\Program Files\neo4j-chs-community-3.5.14-windows\logs\debug.log (鎷掔粷璁块棶銆?
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at org.neo4j.io.fs.DefaultFileSystemAbstraction.openAsOutputStream(DefaultFileSystemAbstraction.java:72)
at org.neo4j.io.file.Files.createOrOpenAsOutputStream(Files.java:51)
at org.neo4j.logging.RotatingFileOutputStreamSupplier.openOutputFile(RotatingFileOutputStreamSupplier.java:338)
at org.neo4j.logging.RotatingFileOutputStreamSupplier.<init>(RotatingFileOutputStreamSupplier.java:137)
at org.neo4j.logging.RotatingFileOutputStreamSupplier.<init>(RotatingFileOutputStreamSupplier.java:121)
at org.neo4j.logging.internal.StoreLogService.<init>(StoreLogService.java:181)
at org.neo4j.logging.internal.StoreLogService.<init>(StoreLogService.java:45)
at org.neo4j.logging.internal.StoreLogService$Builder.build(StoreLogService.java:125)
at org.neo4j.graphdb.factory.module.PlatformModule.createLogService(PlatformModule.java:320)
... 12 more
more
2023-08-07 13:07:50.899+0000 INFO Neo4j Server shutdown initiated by request
查阅了大量的资料和网页,有的是用 NEO4J STOP的都不能使用。
原因:权限不够
使用管理员权限启动CMD就可以了。
具体方如下:WIN11点击Windows徽标,然后搜索“命令提示符”,点击以管理员身份运行,再次运行即可正常运行了。
正常运行: