歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

在RedHat上安裝Fluentd的步驟

  Fluentd作為一個日志收集系統,其用戶還是非常大的,可是安裝Fluentd的步驟非常繁瑣,許多人在安裝的時候就遇到了難題,下面小編就給大家介紹下RedHat安裝Fluentd的方法。

 在RedHat上安裝Fluentd的步驟

  下載fluentd安裝包並解壓

  tar zxvf fluentd-0.10.6.tar.gz

  cd fluentd-0.10.6

  。/configure

  make

  切換到root賬號

  make install

  提示如下

  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’

  /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

  安裝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

  驗證ruby

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

  得到提示信息

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

  執行安裝

  gem install fluentd

  提示如下,不必理會,等待安裝,稍等一會兒(視網絡情況)可看到安裝進度。

  /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.

  命令執行完之後

  執行fluentd --setup

  提示Installed /etc/fluent/fluent.conf.

  執行fluentd -c fluent.conf -vv &

上一頁12下一頁共2頁

Copyright © Linux教程網 All Rights Reserved