Steps to install Fluentd on RedHat

  
                

Fluentd as a log collection system, its users are still very large, but the steps to install Fluentd are very cumbersome, many people have encountered difficulties in the installation, the following small series will introduce you to RedHat to install Fluentd.

and extract the installation package download fluentd

tar zxvf fluentd-0.10.6.tar.gz

cd fluentd-0.10.6

. /configure

make

Switch to root account

make install

Tips are as follows

rake aborted!

Unable to determine name from existing gemspec. Use :name = " ‘gemname’ in #install_tasks to manually set it.

/usr/local/lib/fluent/ruby/lib/Ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/gem_helper.rb:30:in `initialize‘

/usr/local/lib/fluent/ruby/lib/ruby /gems/1.9.1/gems/bundler-1.2.1/lib/bundler/gem_helper.rb:14:in `new’

/usr/local/lib/fluent/ruby/lib/ruby/Gems/1.9.1/gems/bundler-1.2.1/lib/bundler/gem_helper.rb:14:in `install_tasks‘

/home/aircom/fluentd-0.10.6/Rakefile:6:in `"top (required)"’

/usr/local/lib/fluent/ruby/lib/ruby/1.9.1/rake.rb:2373:in `load‘

/usr/local/lib/fluent/ruby/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile’

/usr/local/lib/fluent/ruby/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile‘

/usr/local/lib/fluent/ruby/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling&rs Quo;

/usr/local/lib/fluent/ruby/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile‘

/usr/local/lib/Fluent/ruby/lib/ruby/1.9.1/rake.rb:1991:in `run’

-e:1:in `"main"‘

make: ** * [install] Error 1

Install ruby

rz ruby-1.9.3-p0.tar.gz

tar zxvf ruby-1.9.3-p0.tar. Gz

cd ruby-1.9.3-p0

. /configure

make

make install

Verify ruby

[root@Server201 ruby-1.9.3-p0]# ruby ​​-v

Get the prompt

ruby ​​1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]

Execute the installation

gem install fluentd

Tips are as follows, don't bother, wait for the installation, wait a little while (depending on the network) to see the progress of the installation.

/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `"top (required)"’:

It seems your ruby ​​installation is missing psych (for YAML output).

To eliminate this warning, please install libyaml and reinstall your ruby.

After the command is executed

Execute fluentd --setup

Prompt Installed /etc /fluent/fluent.conf.

Execute fluentd -c fluent.conf -vv &
Previous12Next Total 2 Pages

Copyright © Windows knowledge All Rights Reserved