8 # The name of the database to mount
9 dbms.active_database=graph10.db //数据库名
10 #dbms.active_database=graph.db //默认注释
11
12 # Paths of directories in the installation.
13 dbms.directories.data=/data/neo4j //数据库存储地址
14 #dbms.directories.data=data //默认注释 在neo4j安装目录下的data下
20 # This setting constrains all `LOAD CSV` import files to be under the `import` directory. Remove or comment it out to
21 # allow files to be loaded from anywhere in the filesystem; this introduces possible security problems. See the
22 # `LOAD CSV` section of the manual for details.
23 #dbms.directories.import=import //注释该行,导入csv文件可在系统任意目录下 neo4j-import时用
36 #dbms.memory.heap.initial_size=2048m
37 #dbms.memory.heap.max_size=512m
38 dbms.memory.heap.initial_size=30720m //初始内存 我设置为除系统用4G后的所有
39 dbms.memory.heap.max_size=30720m
# The amount of memory to use for mapping the store files, in bytes (or
42 # kilobytes with the 'k' suffix, megabytes with 'm' and gigabytes with 'g').
43 # If Neo4j is running on a dedicated server, then it is generally recommended
44 # to leave about 2-4 gigabytes for the operating system, give the JVM enough
45 # heap to hold all your transaction state and query context, and then leave the
46 # rest for the page cache.
47 # The default page cache memory assumes the machine is dedicated to running
48 # Neo4j, and is heuristically set to 50% of RAM minus the max Java heap size.
49 dbms.memory.pagecache.size=32g //内存 我设置为除系统用4g后的所有
61 # With default configuration Neo4j only accepts local connections.
62 # To accept non-local connections, uncomment this line:
63 dbms.connectors.default_listen_address=0.0.0.0 //打开远程访问
//HA模式配置
239 # Database mode
240 # Allowed values:
241 # HA - High Availability
242 # SINGLE - Single mode, default.
243 # To run in High Availability mode uncomment this line:
244 dbms.mode=HA
245
246 # ha.server_id is the number of each instance in the HA cluster. It should be
247 # an integer (e.g. 1), and should be unique for each cluster instance.
248 ha.server_id=1
249
250 # ha.initial_hosts is a comma-separated list (without spaces) of the host:port
251 # where the ha.host.coordination of all instances will be listening. Typically
252 # this will be the same for all cluster instances.
253 ha.initial_hosts=10.1.140.25:5001,10.1.140.24:5001 //此处比较重要