马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
择要:本文先容了怎样通过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 端口的映射。
革新网页,重新登岸,果然登岸乐成。
修改设置文件 config
修改设置文件,而无需在vscode做端口映射就可办理。
原始的 #server.default_listen_address=0.0.0.0 是被表明掉的,只答应本地毗连,取消表明之后,答应全网毗连。
|