天天看點

Neo4j圖資料庫配置檔案詳解

  1. For more details and a complete list of settings, please see https://neo4j.com/docs/operations-manual/current/reference/configuration-settings/
  2. # 如果想自定義neo4j資料庫資料的存儲路徑,要同時修改dbms.active_database 和 dbms.directories.data 兩項配置,
  3. # 修改配置後,資料會存放在${dbms.directories.data}/databases/${dbms.active_database} 目錄下
  4. # 安裝的資料庫的名稱,預設使用${NEO4J_HOME}/data/databases/graph.db目錄
  5. # The name of the database to mount
  6. #dbms.active_database=graph.db
  7. #安裝Neo4j資料庫的各個配置路徑,預設使用$NEO4J_HOME下的路徑
  8. #Paths of directories in the installation.
  9. # 資料路徑
  10. #dbms.directories.data=data
  11. # 插件路徑
  12. #dbms.directories.plugins=plugins
  13. #dbms.directories.certificates=certificates 證書路徑
  14. #dbms.directories.logs=logs 日志路徑
  15. #dbms.directories.lib=lib jar包路徑
  16. #dbms.directories.run=run 運作路徑
  17. #預設情況下想load csv檔案,隻能把csv檔案放到${NEO4J_HOME}/import目錄下,把下面的#删除後,可以在load csv時使用絕對路徑,這樣可能不安全
  18. #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.
  19. #此設定将所有“LOAD CSV”導入檔案限制在`import`目錄下。删除注釋允許從檔案系統的任何地方加載檔案;這引入了可能的安全問題。
  20. dbms.directories.import=import
  21. #把下面這行的#删掉後,連接配接neo4j資料庫時就不用輸密碼了
  22. #Whether requests to Neo4j are authenticated. 是否對Neo4j的請求進行了身份驗證。
  23. #To disable authentication, uncomment this line 要禁用身份驗證,請取消注釋此行。
  24. #dbms.security.auth_enabled=false
  25. #Enable this to be able to upgrade a store from an older version. 是否相容以前版本的資料
  26. dbms.allow_format_migration=true
  27. #Java Heap Size: by default the Java heap size is dynamically calculated based on available system resources. Java堆大小:預設情況下,Java堆大小是動态地根據可用的系統資源計算。
  28. #Uncomment these lines to set specific initial and maximum heap size. 取消注釋這些行以設定特定的初始值和最大值
  29. #dbms.memory.heap.initial_size=512m
  30. #dbms.memory.heap.max_size=512m
  31. #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')。
  32. #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提供足夠的堆來儲存所有的事務狀态和查詢上下文,然後保留其餘的頁面緩存 。
  33. #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堆大小。
  34. #dbms.memory.pagecache.size=10g
  35. ### Network connector configuration
  36. #With default configuration Neo4j only accepts local connections. Neo4j預設隻接受本地連接配接(localhost)
  37. #To accept non-local connections, uncomment this line: 要接受非本地連接配接,請取消注釋此行
  38. dbms.connectors.default_listen_address=0.0.0.0 (這是删除#後的配置,可以通過ip通路)
  39. #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
  40. #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名稱,或者可以是位于伺服器前面的反向代理的位址。此設定可能會覆寫以下各個連接配接器。
  41. #dbms.connectors.default_advertised_address=localhost
  42. #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位址,
  43. 為每個連接配接器配置通告的端口,通過設定它們獨特的advertised_address。
  44. #Bolt connector 使用Bolt協定
  45. dbms.connector.bolt.enabled=true
  46. dbms.connector.bolt.tls_level=OPTIONAL
  47. dbms.connector.bolt.listen_address=:7687
  48. #HTTP Connector. There must be exactly one HTTP connector. 使用http協定
  49. dbms.connector.http.enabled=true
  50. dbms.connector.http.listen_address=:7474
  51. #HTTPS Connector. There can be zero or one HTTPS connectors. 使用https協定
  52. dbms.connector.https.enabled=true
  53. dbms.connector.https.listen_address=:7473
  54. #Number of Neo4j worker threads. Neo4j線程數
  55. #dbms.threads.worker_count=
  56. #Logging configuration 日志配置
  57. #To enable HTTP logging, uncomment this line 要啟用HTTP日志記錄,請取消注釋此行
  58. dbms.logs.http.enabled=true
  59. #Number of HTTP logs to keep. 要保留的HTTP日志數
  60. #dbms.logs.http.rotation.keep_number=5
  61. #Size of each HTTP log that is kept. 每個HTTP日志檔案的大小
  62. dbms.logs.http.rotation.size=20m
  63. #To enable GC Logging, uncomment this line 要啟用GC日志記錄,請取消注釋此行
  64. #dbms.logs.gc.enabled=true
  65. #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
  66. #dbms.logs.gc.options=-XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+PrintTenuringDistribution
  67. #Number of GC logs to keep. 要保留的GC日志數
  68. #dbms.logs.gc.rotation.keep_number=5
  69. #Size of each GC log that is kept. 保留的每個GC日志檔案的大小
  70. #dbms.logs.gc.rotation.size=20m
  71. #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”。
  72. #dbms.logs.debug.rotation.size=20m
  73. #Maximum number of history files for the internal log. 最多儲存幾個日志檔案
  74. #dbms.logs.debug.rotation.keep_number=7
  75. ### Miscellaneous configuration 其他配置
  76. #Enable this to specify a parser other than the default one. 啟用此選項可指定除預設解析器之外的解析器
  77. #cypher.default_language_version=3.0
  78. #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` 會從檔案系統加載資料。
  79. dbms.security.allow_csv_import_from_file_urls=true
  80. #Retention policy for transaction logs needed to perform recovery and backups. 執行恢複和備份所需的事務日志的保留政策
  81. #dbms.tx_log.rotation.retention_policy=7 days
  82. #Enable a remote shell server which Neo4j Shell clients can log in to. 啟用Neo4j Shell用戶端可以登入的遠端shell伺服器
  83. dbms.shell.enabled=true
  84. #The network interface IP the shell will listen on (use 0.0.0.0 for all interfaces).
  85. dbms.shell.host=127.0.0.1
  86. #The port the shell will listen on, default is 1337.
  87. dbms.shell.port=1337
  88. #Only allow read operations from this Neo4j instance. This mode still requires write access to the directory for lock purposes. 隻允許從Neo4j執行個體讀取操作。此模式仍然需要對目錄的寫通路以用于鎖定目的。
  89. #dbms.read_only=false
  90. #Comma separated list of JAX-RS packages containing JAX-RS resources, one package name for each mountpoint. The listed package names will be loaded under the mountpoints specified. Uncomment this line to mount the org.neo4j.examples.server.unmanaged.HelloWorldResource.java from neo4j-server-examples under /examples/unmanaged, resulting in a final URL of http://localhost:7474/examples/unmanaged/helloworld/{nodeId} 包含JAX-RS資源的JAX-RS軟體包的逗号分隔清單,每個安裝點一個軟體包名稱。所列出的軟體包名稱将在指定的安裝點下加載。取消注釋此行以裝載org.neo4j.examples.server.unmanaged.HelloWorldResource.java neo4j-server-examples下/ examples / unmanaged,最終的URL為http//localhost7474/examples/unmanaged/helloworld/{nodeId}
  91. #dbms.unmanaged_extension_classes=org.neo4j.examples.server.unmanaged=/examples/unmanaged
  92. #JVM Parameters JVM參數
  93. #G1GC generally strikes a good balance between throughput and tail latency, without too much tuning. G1GC通常在吞吐量和尾部延遲之間達到很好的平衡,而沒有太多的調整。
  94. dbms.jvm.additional=-XX:+UseG1GC
  95. #Have common exceptions keep producing stack traces, so they can be debugged regardless of how often logs are rotated. 有共同的異常保持生成堆棧跟蹤,是以他們可以被調試,無論日志被旋轉的頻率
  96. dbms.jvm.additional=-XX:-OmitStackTraceInFastThrow
  97. #Make sure that `initmemory` is not only allocated, but committed to the process, before starting the database. This reduces memory fragmentation, increasing the effectiveness of transparent huge pages. It also reduces the possibility of seeing performance drop due to heap-growing GC events, where a decrease in available page cache leads to an increase in mean IO response time. Try reducing the heap memory, if this flag degrades performance. 確定在啟動資料庫之前,“initmemory”不僅被配置設定,而且被送出到程序。這減少了記憶體碎片,增加了透明大頁面的有效性。它還減少了由于堆增長的GC事件而導緻性能下降的可能性,其中可用頁面緩存的減少導緻平均IO響應時間的增加。如果此标志降低性能,請減少堆記憶體。
  98. dbms.jvm.additional=-XX:+AlwaysPreTouch
  99. #Trust that non-static final fields are really final. This allows more optimizations and improves overall performance. NOTE: Disable this if you use embedded mode, or have extensions or dependencies that may use reflection or serialization to change the value of final fields! 信任非靜态final字段真的是final。這允許更多的優化和提高整體性能。注意:如果使用嵌入模式,或者有可能使用反射或序列化更改最終字段的值的擴充或依賴關系,請禁用此選項!
  100. dbms.jvm.additional=-XX:+UnlockExperimentalVMOptions
  101. dbms.jvm.additional=-XX:+TrustFinalNonStaticFields
  102. #Disable explicit garbage collection, which is occasionally invoked by the JDK itself. 禁用顯式垃圾回收,這是偶爾由JDK本身調用。
  103. dbms.jvm.additional=-XX:+DisableExplicitGC
  104. #Remote JMX monitoring, uncomment and adjust the following lines as needed. Absolute paths to jmx.access and jmx.password files are required. 遠端JMX監視,取消注釋并根據需要調整以下行。需要jmx.access和jmx.password檔案的絕對路徑。
  105. #Also make sure to update the jmx.access and jmx.password files with appropriate permission roles and passwords, the shipped configuration contains only a read only role called 'monitor' with password 'Neo4j'. 還要確定使用适當的權限角色和密碼更新jmx.access和jmx.password檔案,所配置的配置隻包含名為“monitor”的隻讀角色,密碼為“Neo4j”。
  106. #For more details, see: http://download.oracle.com/javase/8/docs/technotes/guides/management/agent.html On Unix based systems the jmx.password file needs to be owned by the user that will run the server, and have permissions set to 0600. Unix系統,有關詳情,請參閱:http://download.oracle.com/javase/8/docs/technotes/guides/management/agent.html,jmx.password檔案需要由運作伺服器的使用者擁有,并且權限設定為0600。
  107. #For details on setting these file permissions on Windows see: http://docs.oracle.com/javase/8/docs/technotes/guides/management/security-windows.html  Windows系統 有關在設定這些檔案權限的詳細資訊,請參閱:http://docs.oracle.com/javase/8/docs/technotes/guides/management/security-windows.html
  108. #dbms.jvm.additional=-Dcom.sun.management.jmxremote.port=3637
  109. #dbms.jvm.additional=-Dcom.sun.management.jmxremote.authenticate=true
  110. #dbms.jvm.additional=-Dcom.sun.management.jmxremote.ssl=false
  111. #dbms.jvm.additional=-Dcom.sun.management.jmxremote.password.file=/absolute/path/to/conf/jmx.password
  112. #dbms.jvm.additional=-Dcom.sun.management.jmxremote.access.file=/absolute/path/to/conf/jmx.access
  113. #Some systems cannot discover host name automatically, and need this line configured: 某些系統無法自動發現主機名,需要配置以下行:
  114. #dbms.jvm.additional=-Djava.rmi.server.hostname=$THE_NEO4J_SERVER_HOSTNAME
  115. #Expand Diffie Hellman (DH) key size from default 1024 to 2048 for DH-RSA cipher suites used in server TLS handshakes. 對于伺服器TLS握手中使用的DH-RSA密碼套件,将Diffie Hellman(DH)密鑰大小從預設1024展開到2048。
  116. #This is to protect the server from any potential passive eavesdropping. 這是為了保護伺服器免受任何潛在的被動竊聽。
  117. dbms.jvm.additional=-Djdk.tls.ephemeralDHKeySize=2048
  118. ### Wrapper Windows NT/2000/XP Service Properties 包裝器Windows NT / 2000 / XP服務屬性包裝器Windows NT / 2000 / XP服務屬性
  119. #WARNING - Do not modify any of these properties when an application using this configuration file has been installed as a service. WARNING - 當使用此配置檔案的應用程式已作為服務安裝時,不要修改任何這些屬性。
  120. #Please uninstall the service before modifying this section. The service can then be reinstalled. 請在修改此部分之前解除安裝服務。 然後可以重新安裝該服務。
  121. #Name of the service 服務的名稱
  122. dbms.windows_service_name=neo4j
  123. ### Other Neo4j system properties 其他Neo4j系統屬性
  124. dbms.jvm.additional=-Dunsupported.dbms.udc.source=zip

原文位址:https://blog.csdn.net/zhanaolu4821/article/details/80887473