什么是设置cassandra.logdir的最佳方式 [英] What is the best way to set cassandra.logdir
问题描述
我已将cassandra软件放置在 / home / user
所有日志文件应放置在 / data / log
。
I've place cassandra software in /home/user
All Log files should be placed in /data/log
.
Cassandra的文件conf / logback.xml包含用于确定文件日志路径的参数。
Cassandra has the file conf/logback.xml which includes parameters for determining of file log paths.
例如:
${cassandra.logdir}/system.log
什么是bay方式设置或更改 cassandra.logdir
某处? / p>
What is the bay way to set or change only cassandra.logdir
somewhere?
推荐答案
典型的方法是使用 -Dcassandra.logdir = / data / log
。以这种方式设置一些cassandra属性,通常在cassandra-env.sh中 - 您将看到它们通过附加到JVM_OPTS变量进行配置:
The typical way is to set it as a system property using -Dcassandra.logdir=/data/log
. A number of cassandra properties are set in this manner, typically in cassandra-env.sh - you'll see they're configured by appending to the JVM_OPTS variable:
JVM_OPTS="$JVM_OPTS -Dcassandra.logdir=/data/log"
这篇关于什么是设置cassandra.logdir的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!