Browse Source

add fluentd

master
zeus 3 years ago
parent
commit
ad0c7ae8a7
  1. 13
      WriteToMongo/fluent/install-fluent-root.sh
  2. 9
      WriteToMongo/fluent/install-fluent.sh

13
WriteToMongo/fluent/install-fluent-root.sh

@ -0,0 +1,13 @@
#!/bin/sh
BASEDIR=$(dirname $0)
cpwd=$PWD
echo $BASEDIR
cd $BASEDIR
cp fluent.conf /fluentd/etc/
/tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem

9
WriteToMongo/fluent/install-fluent.sh

@ -7,6 +7,11 @@ echo $BASEDIR
cd $BASEDIR
gem install fluentd --no-doc
gem install fluent-plugin-mongo
gem install oj
gem install json
gem install async-http
gem install ext-monitor
gem sources --clear-all
cp fluent.conf /fluentd/etc/
#cp entrypoint.sh /bin/

Loading…
Cancel
Save