1

我在加载 csv 数据时遇到问题……这是我的用例:我有一个返回 CSV 文件的 MVC 控制器。当我通过 Chrome 之类的浏览器访问“'http://{MY IP}:8083/site'”时,它会返回我想要的数据……但是当我从 Neo4j 浏览器访问它时,它会返回“无法在: 'http://{MY IP}:8083/site “……这在我没有远程使用 VPN 时有效,我没有改变任何东西……我唯一想到的是我在使用 VPN现在……这会引起问题吗?这是权限问题吗?日志文件什么都不说!!!这些是我在 neo4j.conf 属性中的 Neo4j 和网络相关配置:

    #*****************************************************************
# Neo4j configuration
#*****************************************************************
# The name of the database to mount
#dbms.active_database=graph.db
# Paths of directories in the installation.
#dbms.directories.data=data
#dbms.directories.plugins=plugins
#dbms.directories.certificates=certificates
# This setting constrains all `LOAD CSV` import files to be under the `import` directory. Remove or uncomment it to
# allow files to be loaded from anywhere in filesystem; this introduces possible security problems. See the `LOAD CSV`
# section of the manual for details.
dbms.directories.import=import
# Whether requests to Neo4j are authenticated.
# To disable authentication, uncomment this line
dbms.security.auth_enabled=false
#*****************************************************************
# Network connector configuration
#*****************************************************************

# Bolt connector
dbms.connector.bolt.type=BOLT
dbms.connector.bolt.enabled=true
dbms.connector.bolt.tls_level=OPTIONAL
# To have Bolt accept non-local connections, uncomment this line
 dbms.connector.bolt.address=0.0.0.0:7687

# HTTP Connector
dbms.connector.http.type=HTTP
dbms.connector.http.enabled=true
# To accept non-local HTTP connections, uncomment this line
dbms.connector.http.address=0.0.0.0:7474

# HTTPS Connector
dbms.connector.https.type=HTTP
dbms.connector.https.enabled=true
dbms.connector.https.encryption=TLS
# To accept non-local HTTPS connection, change 'localhost' to '0.0.0.0'
dbms.connector.https.address=0.0.0.0:7473

# Number of Neo4j worker threads.
#dbms.threads.worker_count=

这也设置为 true :

dbms.security.allow_csv_import_from_file_urls=true
4

0 回答 0