Install fluentd in Redhat linux

Source: Internet
Author: User
Tags fluentd


Redhat linux install fluentd download fluentd installation package and unzip tar zxvf fluentd-0.10.6.tar.gz cd fluentd-0.10.6./configure make www.2cto.com switch to the root account make install prompt 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/ge M_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_handl Ing 'www.2cto.com/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 rubyrz ruby-1.9.3-p0.tar.gztar zxvf ruby-1.9.3-p0.tar.gz cd ruby-1.9.3-p0. /configuremake make install verify ruby [root @ Server201 ruby-1.9.3-p0] # ruby-v get prompt information ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_6 4-Linux] the following prompt is displayed when you execute the gem install fluentd installation. Wait a moment (depending on the network conditions) to check the installation progress. /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, run fluentd -- setup prompts Installed/etc/fluent. conf. run fluentd-c fluent. conf-vv & Output www.2cto.com 17:45:16 + 0800: fluent/supervisor. rb: 153: supervise: starting fluentd-0.10.262012-09-27 17:45:16 + 0800: fluent/supervisor. rb: 235: read_config: reading config file path = "fluent. conf "17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered buffer plugin 'file' 2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered buffer plugin 'memory '2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered input plugin 'debug _ agent' 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered input plugin 'exec '2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered input plugin 'forward' 2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered input plugin 'gc _ stat' 2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered input plugin 'HTTP '2017-09-27 17:45:16 + 2012: fluent/plugin. rb: 89: register_impl: registered input plugin 'object _ space' 2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered input plugin 'status' 2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered input plugin 'tcp '2017-09-27 17:45:16 + 2012: fluent/plugin. rb: 89: register_impl: registered input plugin 'unix '2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered input plugin 'syslog '2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered input plugin 'tail' 2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered output plugin 'copy' 2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered output plugin 'exec '17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered output plugin 'exec _ filter' 2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered output plugin 'file' 2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered output plugin 'forward' 2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered output plugin 'null' 2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered output plugin 'roundrobin' 2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered output plugin 'stdout' 2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered output plugin 'tcp '2017-09-27 17:45:16 + 2012: fluent/plugin. rb: 89: register_impl: registered output plugin 'unix '2012-09-27 17:45:16 + 0800: fluent/plugin. rb: 89: register_impl: registered output plugin 'test' 2012-09-27 17:45:16 + 0800: fluent/engine. rb: 65: block in configure: adding source type = "forward" 17:45:16 + 0800: fluent/engine. rb: 65: block in configure: adding source type = "http" www.2cto.com 17:45:16 + 0800: fluent/engine. rb: 81: block in configure: adding match pattern = "debug. ** "type =" stdout "17:45:16 + 0800: plugin/in_forward.rb: 61: listen: listening fluent socket on 0.0.0.0: 242242012-09-27 17:45:16 + 0800: plugin/in_http.rb: 74: start: listening http on 0.0.0.0: 8888 verify the listening port netstat-na | grep 88tcp 0 0 0.0.0.0: 8888 0.0.0.0: * LISTEN tcp 0 0 127.0.0.1: 48241 127.0.0.1: 8888 TIME_WAIT udp 0 0 ::: 58872 ::: * www.2cto.com unix 2 [] DGRAM 9880 unix 2 [] DGRAM 8859 unix 2 [] DGRAM 8846 unix 2 [] DGRAM 8806 send data verification echo '{"json ": "message"} '| fluent-cat debug. test output 17:45:32 + 0800: plugin/in_forward.rb: 140: initialize: accepted fluent socket object_id = 953240802012-09-27 17:45:32 + 0800 debug. test: {"json": "message"} 17:45:32 + 0800: plugin/in_forward.rb: 181: on_close: closed fluent socket object_id = 95324080
So far, the installation is complete. Conclusion: in fact, the installation is online, and it is useless to download the fluent package in advance. You can directly start installing ruby and wait for verification.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.