{"id":2691,"date":"2016-05-25T23:23:10","date_gmt":"2016-05-25T15:23:10","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=2691"},"modified":"2016-05-25T23:23:10","modified_gmt":"2016-05-25T15:23:10","slug":"%e5%9c%a8centos%e4%b8%8a%e6%90%ad%e5%bb%baelk%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/2691.html","title":{"rendered":"\u5728CentOS\u4e0a\u642d\u5efaELK\u73af\u5883"},"content":{"rendered":"<p>=Start=<\/p>\n<h6>\u7f18\u7531\uff1a<\/h6>\n<p>\u5b66\u4e60\u9700\u8981\uff1b\u6d4b\u8bd5\u9700\u8981\uff1b\u5c55\u793a\u9700\u8981\u3002<\/p>\n<h6>\u53c2\u8003\u89e3\u7b54\uff1a<\/h6>\n<p>\u611f\u89c9\u73b0\u5728\u7684\u8f6f\u4ef6\uff0c\u8d8a\u662f\u65b0\u7248\u672c\uff0c\u5b89\u88c5\u3001\u642d\u5efa\u8d77\u6765\u5c31\u8d8a\u662f\u65b9\u4fbf\u3002\u4e4b\u524d\u642d\u5efaELK\u73af\u5883\u7684\u65f6\u5019\u8fd8\u6709\u5404\u79cd\u4e0d\u4fbf\uff0c\u4f46\u73b0\u5728\u771f\u7684\u662f\u8d8a\u6765\u8d8a\u65b9\u4fbf\u4e86\u3002<\/p>\n<pre class=\"lang:default decode:true \"># yum install java-1.7.0-openjdk\n# java -version\n\n$ wget https:\/\/download.elastic.co\/elasticsearch\/release\/org\/elasticsearch\/distribution\/rpm\/elasticsearch\/2.3.2\/elasticsearch-2.3.2.rpm\n# yum localinstall elasticsearch-2.3.2.rpm\n# \/etc\/init.d\/elasticsearch status\n# \/etc\/init.d\/elasticsearch start\n# curl -X GET http:\/\/localhost:9200\/\n# netstat -lntp\n\n$ wget https:\/\/download.elastic.co\/kibana\/kibana\/kibana-4.5.0-1.x86_64.rpm\n# yum localinstall kibana-4.5.0-1.x86_64.rpm\n# rpm -qc kibana\n# vim $(rpm -qc kibana)     # server.port: 8080\n# \/etc\/init.d\/kibana status\n# \/etc\/init.d\/kibana start\n# netstat -lntp\n\n$ wget https:\/\/download.elastic.co\/logstash\/logstash\/packages\/centos\/logstash-2.3.2-1.noarch.rpm\n# yum localinstall logstash-2.3.2-1.noarch.rpm\n# \/etc\/init.d\/logstash status\n# \/etc\/init.d\/logstash start\n# netstat -lntp<\/pre>\n<p>\u867d\u7136\u642d\u5efa\u8d77\u6765\u5f88\u5bb9\u6613\uff0c\u4f46\u662f\u8981\u6ce8\u610f\u9ed8\u8ba4\u914d\u7f6e\u5f88\u591a\u65f6\u5019\u662f\u4e0d\u5b89\u5168\u7684\uff08\u56e0\u4e3a\u4ed6\u4eec\u5047\u8bbe\u4f60\u5904\u5728\u4e00\u4e2a\u5b89\u5168\u7684\u73af\u5883\u4e2d\uff0c\u4f46\u662f\u5728\u90e8\u5206\u60c5\u51b5\u4e0b\u5e76\u4e0d\u662f\u8fd9\u6837\u7684\uff09\uff0c\u5efa\u8bae\u5bf9\u5e94\u7528\u8fdb\u884c\u8bbf\u95ee\u63a7\u5236\u3002<\/p>\n<h6>\u53c2\u8003\u94fe\u63a5\uff1a<\/h6>\n<ul>\n<li><a href=\"https:\/\/www.elastic.co\/downloads\/\">ElasticSearch\u5b98\u65b9\u4e0b\u8f7d<\/a><\/li>\n<li><a href=\"https:\/\/segmentfault.com\/a\/1190000003689999\">\u4f7f\u7528ELK(Elasticsearch + Logstash + Kibana) \u642d\u5efa\u65e5\u5fd7\u96c6\u4e2d\u5206\u6790\u5e73\u53f0\u5b9e\u8df5<\/a>[<a href=\"http:\/\/wsgzao.github.io\/post\/elk\/\">http:\/\/wsgzao.github.io\/post\/elk\/<\/a>]<\/li>\n<li><a href=\"http:\/\/kibana.logstash.es\/content\/\">ELKstack \u4e2d\u6587\u6307\u5357<\/a><\/li>\n<li><a href=\"https:\/\/segmentfault.com\/a\/1190000004945405\">https:\/\/segmentfault.com\/a\/1190000004945405<\/a><\/li>\n<li><a href=\"https:\/\/segmentfault.com\/a\/1190000002904818\">\u4f7f\u7528 logstash, elasticsearch, kibana \u642d\u5efa\u65e5\u5fd7\u5206\u6790\u7cfb\u7edf<\/a><\/li>\n<\/ul>\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u5b66\u4e60\u9700\u8981\uff1b\u6d4b\u8bd5\u9700\u8981\uff1b\u5c55\u793a\u9700\u8981\u3002 \u53c2\u8003\u89e3\u7b54\uff1a \u611f\u89c9\u73b0\u5728\u7684\u8f6f\u4ef6\uff0c\u8d8a\u662f\u65b0\u7248\u672c\uff0c\u5b89\u88c5\u3001\u642d\u5efa\u8d77\u6765 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,11,12],"tags":[607,30],"class_list":["post-2691","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-linux","category-tools","tag-elk","tag-linux"],"views":16167,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/2691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=2691"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/2691\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=2691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=2691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=2691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}