个人neo4j配置
# 修改第9行,去掉#,修改数据库名 dbms.active_database=wkq_graph.db # 修改第12行,去掉#。修改路径,改为绝对路径 dbms.directories.data=C:/WorkSpaces/Neo4j/ # 修改9行和12行后,neo4j数据存放在 C:/WorkSpaces/Neo4j/databases/wkq_graph.db,没错,多了一个databases # 修改第22行,在前面加个#,load csv时容许从任意路径读取文件 #dbms.directories.import=import # 修改第26行,删除#后,链接数据库不须要密码 #dbms.security.auth_enabled=false # 修改35行和36行,设置JVM初始堆内存和JVM最大堆内存,这是在我本身电脑上测试用,生产环境本身慢慢调 # 建议生产环境给的JVM最大堆内存越大越好,可是要小于机器的物理内存 dbms.memory.heap.initial_size=1024 dbms.memory.heap.max_size=2048m # 修改46行,能够认为这个是缓存,若是机器配置高,这个越大越好 dbms.memory.pagecache.size=10g # 修改54行,去掉改行的#,能够远程经过ip访问neo4j数据库 dbms.connectors.default_listen_address=0.0.0.0 # 默认 bolt端口是7687,http端口是7474,https关口是7473,不修改下面3项也能够 # 修改71行,去掉#,设置http端口为7474,端口能够自定义,只要不和其余端口冲突就行 #dbms.connector.bolt.listen_address=:7687 # 修改75行,去掉#,设置http端口为7474,端口能够自定义,只要不和其余端口冲突就行 dbms.connector.http.listen_address=:7474 # 修改79行,去掉#,设置http端口为7473,端口能够自定义,只要不和其余端口冲突就行 dbms.connector.https.listen_address=:7473 # 修改227行,去掉#,容许从远程url来load csv dbms.security.allow_csv_import_from_file_urls=true # 修改233行,容许使用neo4j-shell,相似于mysql 命令行之类的 dbms.shell.enabled=true # 修改235行,去掉#,设置链接neo4j-shell的端口,通常都是localhost或者127.0.0.1,这样安全,其余地址的话,通常使用https就行 dbms.shell.host=127.0.0.1 # 修改237行,去掉#,设置neo4j-shell端口,端口能够自定义,只要不和其余端口冲突就行 dbms.shell.port=1337 # 修改241行,设置neo4j可读可写 dbms.read_only=false
neo4j.conf汉化版
转自:http://weikeqin.cn/2017/04/05/neo4j-config/http://neo4j.com.cn/topic/5a0afb7b59d57b3653caa725For more details and a complete list of settings, please see https://neo4j.com/docs/operations-manual/current/reference/configuration-settings/ # 若是想自定义neo4j数据库数据的存储路径,要同时修改dbms.active_database 和 dbms.directories.data 两项配置, # 修改配置后,数据会存放在${dbms.directories.data}/databases/${dbms.active_database} 目录下 # 安装的数据库的名称,默认使用${NEO4J_HOME}/data/databases/graph.db目录 # The name of the database to mount #dbms.active_database=graph.db #安装Neo4j数据库的各个配置路径,默认使用$NEO4J_HOME下的路径 #Paths of directories in the installation. # 数据路径 #dbms.directories.data=data # 插件路径 #dbms.directories.plugins=plugins #dbms.directories.certificates=certificates 证书路径 #dbms.directories.logs=logs 日志路径 #dbms.directories.lib=lib jar包路径 #dbms.directories.run=run 运行路径 #默认状况下想load csv文件,只能把csv文件放到${NEO4J_HOME}/import目录下,把下面的#删除后,能够在load csv时使用绝对路径,这样可能不安全 #This setting constrains all `LOAD CSV` import files to be under the `import` directory. Remove or comment it out to allow files to be loaded from anywhere in the filesystem; this introduces possible security problems. See the `LOAD CSV` section of the manual for details. #此设置将全部“LOAD CSV”导入文件限制在`import`目录下。删除注释容许从文件系统的任何地方加载文件;这引入了可能的安全问题。 dbms.directories.import=import #把下面这行的#删掉后,链接neo4j数据库时就不用输密码了 #Whether requests to Neo4j are authenticated. 是否对Neo4j的请求进行了身份验证。 #To disable authentication, uncomment this line 要禁用身份验证,请取消注释此行。 #dbms.security.auth_enabled=false #Enable this to be able to upgrade a store from an older version. 是否兼容之前版本的数据 dbms.allow_format_migration=true #Java Heap Size: by default the Java heap size is dynamically calculated based on available system resources. Java堆大小:默认状况下,Java堆大小是动态地根据可用的系统资源计算。 #Uncomment these lines to set specific initial and maximum heap size. 取消注释这些行以设置特定的初始值和最大值 #dbms.memory.heap.initial_size=512m #dbms.memory.heap.max_size=512m #The amount of memory to use for mapping the store files, in bytes (or kilobytes with the 'k' suffix, megabytes with 'm' and gigabytes with 'g'). 用于映射存储文件的内存量(以字节为单位)千字节带有'k'后缀,兆字节带有'm',千兆字节带有'g')。 #If Neo4j is running on a dedicated server, then it is generally recommended to leave about 2-4 gigabytes for the operating system, give the JVM enough heap to hold all your transaction state and query context, and then leave the rest for the page cache. 若是Neo4j在专用服务器上运行,那么一般建议为操做系统保留大约2-4千兆字节,为JVM提供足够的堆来保存全部的事务状态和查询上下文,而后保留其他的页面缓存 。 #The default page cache memory assumes the machine is dedicated to running Neo4j, and is heuristically set to 50% of RAM minus the max Java heap size. 默认页面缓存存储器假定机器专用于运行Neo4j,而且试探性地设置为RAM的50%减去最大Java堆大小。 #dbms.memory.pagecache.size=10g ### Network connector configuration #With default configuration Neo4j only accepts local connections. Neo4j默认只接受本地链接(localhost) #To accept non-local connections, uncomment this line: 要接受非本地链接,请取消注释此行 dbms.connectors.default_listen_address=0.0.0.0 (这是删除#后的配置,能够经过ip访问) #You can also choose a specific network interface, and configure a non-default port for each connector, by setting their individual listen_address. 还能够选择特定的网络接口,并配置非默认值端口,设置它们各自的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. 客户端能够访问此服务器的地址。这能够是服务器的IP地址或DNS名称,或者能够是位于服务器前面的反向代理的地址。此设置可能会覆盖如下各个链接器。 #dbms.connectors.default_advertised_address=localhost #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. 您还能够选择特定广播主机名或IP地址, 为每一个链接器配置通告的端口,经过设置它们独特的advertised_address。 #Bolt connector 使用Bolt协议 dbms.connector.bolt.enabled=true dbms.connector.bolt.tls_level=OPTIONAL dbms.connector.bolt.listen_address=:7687 #HTTP Connector. There must be exactly one HTTP connector. 使用http协议 dbms.connector.http.enabled=true dbms.connector.http.listen_address=:7474 #HTTPS Connector. There can be zero or one HTTPS connectors. 使用https协议 dbms.connector.https.enabled=true dbms.connector.https.listen_address=:7473 #Number of Neo4j worker threads. Neo4j线程数 #dbms.threads.worker_count= #Logging configuration 日志配置 #To enable HTTP logging, uncomment this line 要启用HTTP日志记录,请取消注释此行 dbms.logs.http.enabled=true #Number of HTTP logs to keep. 要保留的HTTP日志数 #dbms.logs.http.rotation.keep_number=5 #Size of each HTTP log that is kept. 每一个HTTP日志文件的大小 dbms.logs.http.rotation.size=20m #To enable GC Logging, uncomment this line 要启用GC日志记录,请取消注释此行 #dbms.logs.gc.enabled=true #GC Logging Options see http://docs.oracle.com/cd/E19957-01/819-0084-10/pt_tuningjava.html#wp57013 for more information. GC日志记录选项 有关详细信息,请参见http://docs.oracle.com/cd/E19957-01/819-0084-10/pt_tuningjava.html#wp57013 #dbms.logs.gc.options=-XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+PrintTenuringDistribution #Number of GC logs to keep. 要保留的GC日志数 #dbms.logs.gc.rotation.keep_number=5 #Size of each GC log that is kept. 保留的每一个GC日志文件的大小 #dbms.logs.gc.rotation.size=20m #Size threshold for rotation of the debug log. If set to zero then no rotation will occur. Accepts a binary suffix "k", "m" or "g". 调试日志旋转的大小阈值。若是设置为零,则不会发生滚动(达到指定大小后切割日志文件)。接受二进制后缀“k”,“m”或“g”。 #dbms.logs.debug.rotation.size=20m #Maximum number of history files for the internal log. 最多保存几个日志文件 #dbms.logs.debug.rotation.keep_number=7 ### Miscellaneous configuration 其余配置 #Enable this to specify a parser other than the default one. 启用此选项可指定除默认解析器以外的解析器 #cypher.default_language_version=3.0 #Determines if Cypher will allow using file URLs when loading data using `LOAD CSV`. Setting this value to `false` will cause Neo4j to fail `LOAD CSV` clauses that load data from the file system. 肯定当使用加载数据时,Cypher是否容许使用文件URL `LOAD CSV`。将此值设置为`false`将致使Neo4j不能经过互联网上的URL导入数据,`LOAD CSV` 会从文件系统加载数据。 dbms.security