早安,
我一直在尝试连接到服务器上的Neo4j 3.5.14社区版,但是无法连接。
昨天我在我的便宜的centos7 vps上安装了neo4j的新版本。
neo4j 3.5.14openjdk版本“ 1.8.0_232”OpenJDK运行时环境(内部版本1.8.0_232-b09)OpenJDK 64位服务器VM(内部版本25.232-b09,混合模式)
下面是我的配置文件:
#*****************************************************************
# Network connector configuration
#*****************************************************************
# With default configuration Neo4j only accepts local connections.
# To accept non-local connections, uncomment this line:
#dbms.connectors.default_listen_address=0.0.0.0
dbms.connectors.default_listen_address=199.192.xxx.xxx
# You can also choose a specific network interface, and configure a non-default
# port for each connector, by setting their individual listen_address.
# The address at which this server can be reached by its clients. This may be the server's IP address or DNS name, or
# it may be the address of a reverse proxy which sits in front of the server. This setting may be overridden for
# individual connectors below.
#dbms.connectors.default_advertised_address=localhost
dbms.connectors.default_advertised_address=199.192.xxx.xxx
# You can also choose a specific advertised hostname or IP address, and
# configure an advertised port for each connector, by setting their
# individual advertised_address.
# Bolt connector
dbms.connector.bolt.enabled=true
#dbms.connector.bolt.tls_level=OPTIONAL
dbms.connector.bolt.listen_address=199.192.xxx.xxx:7687
# HTTP Connector. There can be zero or one HTTP connectors.
dbms.connector.http.enabled=true
dbms.connector.http.listen_address=199.192.xxx.xxx:7474
# HTTPS Connector. There can be zero or one HTTPS connectors.
dbms.connector.https.enabled=true
#dbms.connector.https.listen_address=:7473
下面是我的netstat结果:
tcp6 0 0 199.192.xxx.xxx:7687 :::* LISTEN 4205/java
tcp6 0 0 :::3306 :::* LISTEN 5117/mysqld
tcp6 0 0 :::111 :::* LISTEN 1/systemd
tcp6 0 0 :::80 :::* LISTEN 2951/httpd
tcp6 0 0 199.192.xxx.xxx:7473 :::* LISTEN 4205/java
tcp6 0 0 199.192.xxx.xxx:7474 :::* LISTEN 4205/java
每次尝试访问:199.192.xxx.xxx:7473,
我得到无法访问此站点
感谢您的帮助。
似乎您正在尝试通过HTTPS访问它,但是dbms.connector.https.listen_address =:7473在配置文件中被注释掉了