启动neo4j服务器(版本:5.1.0),如何指定neo4j.conf文件,而不是让neo4j在默认位置查找配置文件?(默认文件位置)。 neo4j start [relative_path]/neo4j.conf导致:Unmatched argument at index 1: '../../../config/neo4j.conf',而期望使用特定的neo4j.conf文件。
$ ./bin/neo4j --help
Usage: neo4j [-hV] [--expand-commands] [--verbose] [COMMAND]
A partial alias for 'neo4j-admin server'. Commands for working with DBMS process from 'neo4j-admin server' category can
be invoked using this command.
--expand-commands Allow command expansion in config value evaluation.
-h, --help Show this help message and exit.
-V, --version Print version information and exit.
--verbose Prints additional information.
Commands:
version Print version information and exit.
help Displays help information about the specified command
console Start server in console.
restart Restart the server daemon.
start Start server as a daemon.
status Get the status of the server.
stop Stop the server daemon.
Environment variables:
NEO4J_CONF Path to directory which contains neo4j.conf.
NEO4J_DEBUG Set to anything to enable debug output.
NEO4J_HOME Neo4j home directory.
HEAP_SIZE Set JVM maximum heap size during command execution. Takes a number and a unit, for example 512m.
JAVA_OPTS Used to pass custom setting to Java Virtual Machine executing the command. Refer to JVM documentation
about the exact format. This variable is incompatible with HEAP_SIZE and takes precedence over HEAP_SIZE.
2条答案
按热度按时间7d7tgy0s1#
您可以使用命令的
--help
来了解参数。因此,要为
neo4j.conf
文件提供一个特定的位置,您需要将其作为环境变量传递。nhn9ugyo2#
当你启动数据库时,你可以看到右边3个点。2在里面点击打开文件夹〉配置。
感谢