Neo4j with PowerShell 和 Neo4j as a service 有什么区别?

What is the difference between Neo4j with PowerShell and Neo4j as a service?

this comment 中,一位 Neo4j 的工作人员说:

I would not recommend mixing each of these methods for running the database, as they're not suited for working together. You should pick one of:

  • Neo4j Desktop
  • Neo4j with PowerShell
  • Neo4j as a windows service
  • Neo4j with Docker
  • Neo4j Aura

带有 PowerShell 的 Neo4j 和作为服务的 Neo4j 有什么区别?检查 Windows installation - Operations Manual I take that by Neo4j with PowerShell he means Neo4j PowerShell module。但据我了解,它还要求您先使用命令 Invoke-Neo4j install-service 安装 Neo4j 服务,然后才能 Invoke-Neo4j start。我认为在 PowerShell 中 Invoke-Neo4j 等同于独立的 neo4j 命令,前提是您已经通过 Import-Module .\Neo4j-Management.psd1?

导入了模块

从与@Mathias R. Jessen 的对话中,我认为除了可以启动 DBSM 服务器的 Invoke-Neo4j console 之外,模块中的其余命令(例如 Invoke-Neo4j startInvoke-Neo4j statusInvoke-Neo4j install-service 等)与服务一起工作,与来自 neo4j.bat 的命令相同(例如 neo4j startneo4j statusneo4j install-service、 ETC)。我认为这种命令组合是为了方便处理一件事情。