Browse Source

add fluentd

master
zeus 3 years ago
parent
commit
41d55a44fb
  1. 13
      WriteToMongo/fluent/install-fluent-root.sh
  2. 15
      WriteToMongo/fluent/install-fluent.sh

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

@ -1,13 +0,0 @@
#!/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

15
WriteToMongo/fluent/install-fluent.sh

@ -7,11 +7,12 @@ echo $BASEDIR
cd $BASEDIR cd $BASEDIR
gem install fluentd --no-doc sudo -u node gem install fluentd --no-doc
gem install fluent-plugin-mongo sudo -u node gem install gem install fluent-plugin-mongo
gem install oj sudo -u node gem install gem install oj
gem install json sudo -u node gem install gem install json
gem install async-http sudo -u node gem install gem install async-http
gem install ext-monitor sudo -u node gem install gem install ext_monitor
gem sources --clear-all sudo -u node gem install gem sources --clear-all
cp fluent.conf /fluentd/etc/

Loading…
Cancel
Save