ServiceUnavailable:WebSocket 连接失败后:服务器连接为 neo4j
ServiceUnavailable: WebSocket connection failure after :server connect for neo4j
我想在我的机器上使用 dokcer 启动 Neo4j。我下载并做了:
docker run -p 7474:7474 neo4j
但是在 http://localhost:7474/browser/ 我有:
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
我尝试使用 neo4j/neo4j 凭据,但它给了我同样的错误。
我想编辑 $NEO4J_HOME/conf/neo4j.conf
并取消注释:
# To have Bolt accept non-local connections, uncomment this line:
dbms.connector.bolt.address=0.0.0.0:7687
正如他们所说 in the following method 但我找不到文件
bash-5.1$ cd /var/lib/
abrt/ games/ PackageKit/
AccountsService/ gdm/ plymouth/
alsa/ geoclue/ polkit-1/
alternatives/ gssproxy/ portables/
authselect/ hp/ power-profiles-daemon/
bluetooth/ httpd/ private/
chrony/ hyperv/ rpm/
cni/ initramfs/ rpm-state/
color/ iscsi/ samba/
colord/ kdump/ selinux/
containerd/ libvirt/ sss/
containers/ lockdown/ systemd/
dbus/ logrotate/ texmf/
dhclient/ machines/ tpm/
dnf/ misc/ tpm2-tss/
dnsmasq/ mlocate/ udisks2/
docker/ net-snmp/ unbound/
fedora-third-party/ NetworkManager/ upower/
flatpak/ nfs/ xkb/
fprint/ openvpn/
fwupd/ os-prober/
您还需要从 docker 容器中公开螺栓端口。默认螺栓端口为 7687.
docker run -p 7474:7474 -p 7687:7687 neo4j
我想在我的机器上使用 dokcer 启动 Neo4j。我下载并做了:
docker run -p 7474:7474 neo4j
但是在 http://localhost:7474/browser/ 我有:
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
我尝试使用 neo4j/neo4j 凭据,但它给了我同样的错误。
我想编辑 $NEO4J_HOME/conf/neo4j.conf
并取消注释:
# To have Bolt accept non-local connections, uncomment this line:
dbms.connector.bolt.address=0.0.0.0:7687
正如他们所说 in the following method 但我找不到文件
bash-5.1$ cd /var/lib/
abrt/ games/ PackageKit/
AccountsService/ gdm/ plymouth/
alsa/ geoclue/ polkit-1/
alternatives/ gssproxy/ portables/
authselect/ hp/ power-profiles-daemon/
bluetooth/ httpd/ private/
chrony/ hyperv/ rpm/
cni/ initramfs/ rpm-state/
color/ iscsi/ samba/
colord/ kdump/ selinux/
containerd/ libvirt/ sss/
containers/ lockdown/ systemd/
dbus/ logrotate/ texmf/
dhclient/ machines/ tpm/
dnf/ misc/ tpm2-tss/
dnsmasq/ mlocate/ udisks2/
docker/ net-snmp/ unbound/
fedora-third-party/ NetworkManager/ upower/
flatpak/ nfs/ xkb/
fprint/ openvpn/
fwupd/ os-prober/
您还需要从 docker 容器中公开螺栓端口。默认螺栓端口为 7687.
docker run -p 7474:7474 -p 7687:7687 neo4j