网站首页的模块布局,枣庄手机网站建设电话,erp沙盘模拟,做网站用apache还是nginx摘要#xff1a;本文介绍了如何通过VSCode连接内网部署的Neo4j服务器#xff0c;并启动服务。在访问Neo4j登录界面时#xff0c;遇到了端口映射问题导致无法登录。通过手动添加7687端口的映射后#xff0c;成功登录Neo4j。 我在内网部署了一台服务器#xff0c;并在其上运…摘要本文介绍了如何通过VSCode连接内网部署的Neo4j服务器并启动服务。在访问Neo4j登录界面时遇到了端口映射问题导致无法登录。通过手动添加7687端口的映射后成功登录Neo4j。 我在内网部署了一台服务器并在其上运行了Neo4j图数据库。由于服务器的访问权限受限需要通过VPN才能登录到该服务器。为了更方便地编写代码和操作Neo4j我选择使用Visual Studio Code (VSCode) 来连接这台远程主机并启动Neo4j服务。 如下图所示访问 http://localhost:7474 可以进入neo4j 登陆界面 这是因为 vscode 连接远程主机后自动实现端口映射的能力需要在vscode的终端运行命令才可以。
在 vscode 界面中点击 PORTS 就可看到端口映射如下图所示
但是输入账号和密码后遇到了下述报错导致无法登陆。 报错信息是
ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket readyState is: 3为了找到问题的根源我右键点击了网页选择了“检查”选项并进一步点击了“Console”以查看该网站的报错信息。如下图所示我发现7687端口访问失败是导致无法登录的主要原因。 于是给 vscode 手动添加 7687 端口的映射。
刷新网页重新登陆果然登陆成功。