sed -i 's#ZOO_LOG_DIR=.*#ZOO_LOG_DIR="$ZOOBINDIR/../logs"#g' /opt/machtalk/zookeeper/bin/zkEnv.sh
sed -i 's#ZOO_LOG4J_PROP=.*#ZOO_LOG4J_PROP="INFO,ROLLINGFILE"#g' /opt/machtalk/zookeeper/bin/zkEnv.sh

sed -i 's#MaxFileSize=.*#MaxFileSize=100MB#g' /opt/machtalk/zookeeper/conf/log4j.properties
sed -i 's/#log4j.appender.ROLLINGFILE.MaxBackupIndex=10/log4j.appender.ROLLINGFILE.MaxBackupIndex=10/g' /opt/machtalk/zookeeper/conf/log4j.properties
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""