wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz tar xzvf git-latest.tar.gz cd git-{date} autoconf ./configure --with-curl=/usr/local make
make install
四 安裝RUBY 下載ruby-2.0.0-p247.tar.gz tar -zxvf ruby-2.0.0-p247.tar.gz cd ruby-2.0.0-p247 ./configure -prefix=/opt/modules/ruby make make install 添加環境變量:export PATH=/opt/modules/ruby/bin:$PATH
測試RUBY GEM: [coolbeans@coolbeans-fluentd ~]$ gem -v 2.0.3 備註: 在安裝RUBY前請確保OPEN-SSL已安裝 五 安裝elasticsearch 下載:elasticsearch-0.90.0.RC2.tar.gz tar -zxvf elasticsearch-0.90.0.RC2.tar.gz cd elasticsearch-0.90.0.RC2 啟動: ./bin/elasticsearch -f
六 安裝bundle [coolbeans@coolbeans-fluentd bin]$ sudo ./gem install bundle [sudo] password for coolbeans: Fetching: bundler-1.3.5.gem (100%) Successfully installed bundler-1.3.5 Fetching: bundle-0.0.1.gem (100%) Successfully installed bundle-0.0.1 Parsing documentation for bundler-1.3.5 Installing ri documentation for bundler-1.3.5 Parsing documentation for bundle-0.0.1 Installing ri documentation for bundle-0.0.1 2 gems installed
七 安裝Kibana [coolbeans@coolbeans-fluentd ~]$ cd Kibana-0.2.0 [coolbeans@coolbeans-fluentd Kibana-0.2.0]$ bundle install --path vendor/bundle Fetching gem metadata from http://rubygems.org/......... Fetching gem metadata from http://rubygems.org/.. Resolving dependencies... Installing rake (10.1.0) Installing daemons (1.1.9) Installing diff-lcs (1.1.3) Installing eventmachine (1.0.0) Installing fastercsv (1.5.5) Installing json (1.7.5) Installing rack (1.4.1) Installing rack-protection (1.2.0) Installing tilt (1.3.3) Installing sinatra (1.3.3) Installing thin (1.5.0) Installing tzinfo (0.3.35) Using kibana (0.0.1) from source at . Installing rspec-core (2.11.1) Installing rspec-expectations (2.11.3) Installing rspec-mocks (2.11.3) Installing rspec (2.11.0) Using bundler (1.3.5) Your bundle is complete! It was installed into ./vendor/bundle
lua:
local access_token = ngx.var.cookie_SGAccessToken
if access_token then
ngx.header["Set-Cookie"] = "SGAccessToken="..access_token.."; path=/;Max-Age=3000"
end
修改 KibanaConfig.rb 16行. 將 127.0.0.1 修改為 0.0.0.0 以綁定所有IP
# The adress ip Kibana should listen on
KibanaHost = '127.0.0.1'