neo4j环境安装及远程使用

neo4j环境安装及远程使用

下载安装

  • java环境
  • 下载
  • https://neo4j.com/download-center/#releases
  • 根据自己的系统选择程序包

  • 解压
  • 然后开启服务运行
  • cd bin;
    ./neo4j start

  • 如需支持远程访问进入conf文件夹修改neo4j.conf 文件

  • 关闭防火墙

第8,9行:bolt连接
第14,15行:http连接
第21,22行:https连接
  1 # Network connector configuration                                                                                                                                                                              
  2 #*****************************************************************                                                                                                                                             
  3                                                                                                                                                                                                                
  4 # Bolt connector                                                                                                                                                                                               
  5 dbms.connector.bolt.type=BOLT                                                                                                                                                                                  
  6 dbms.connector.bolt.enabled=true                                                                                                                                                                               
  7 dbms.connector.bolt.tls_level=OPTIONAL                                                                                                                                                                         
  8 # To have Bolt accept non-local connections, uncomment this line                                                                                                                                               
  9 # dbms.connector.bolt.address=0.0.0.0:7687                                                                                                                                                                     
 10                                                                                                                                                                                                                
 11 # HTTP Connector                                                                                                                                                                                               
 12 dbms.connector.http.type=HTTP                                                                                                                                                                                  
 13 dbms.connector.http.enabled=true                                                                                                                                                                               
 14 # To accept non-local HTTP connections, uncomment this line                                                                                                                                                 
 15 # dbms.connector.http.address=0.0.0.0:7474                                                                                                                                                            
 16                                                                                                                                                                                                                
 17 # HTTPS Connector                                                                                                                                                                                              
 18 dbms.connector.https.type=HTTP                                                                                                                                                                                 
 19 dbms.connector.https.enabled=true                                                                                                                                                                              
 20 dbms.connector.https.encryption=TLS                                                                                                                                                                            
 21 # To accept non-local HTTPS connection, change 'localhost' to '0.0.0.0'                                                                                                                                        
 22 dbms.connector.https.address=localhost:7473                                                                                                                                                                    
 23                                                                                                                                                                                                                
 24 # Number of Neo4j worker threads.                                                                                                                                                                              
 25 #dbms.threads.worker_count=                                                                                                                                                                                    
 26                                                                                                                                                                                                                
 27 #*****************************************************************                                                                                                                                             
 28 # Logging configuration                                                                                                                                                                                        
 29 #*****************************************************************  
--------------------- 

  • 异常
  • org.neo4j.driver.v1.exceptions.ServiceUnavailableException:Received fatal alert:hand_failure
  • 解决方法
    Config noSSL = Config.build().withEncryptionLevel(Config.EncryptionLevel.NONE).toConfig();

猜你喜欢

转载自www.cnblogs.com/Huerye/p/10036372.html