https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.0.zip
unzip elasticsearch-5.2.0.zipchown -R es.es elasticsearch-5.2.0es啟動需要在非root下,新建賬號和創建數據目錄useradd esmkdir /export/es52/修改配置文件cat elasticsearch.ymlpath.data: /export/es52/datapath.logs: /export/es52/logsnetwork.host: 192.168.80.11啟動./bin/elasticsearch -djps 驗證curl http://192.168.80.11:9200/{ "name" : "g-H2EPn", "cluster_name" : "elasticsearch", "cluster_uuid" : "UbMTV1G5QtGyBjCRZ9XJSw", "version" : { "number" : "5.2.0", "build_hash" : "24e05b9", "build_date" : "2017-01-24T19:52:35.800Z", "build_snapshot" : false, "lucene_version" : "6.4.0" }, "tagline" : "You Know, for Search"}配合kibana安裝x-pack監控插件./elasticsearch-plugin install x-pack添加配置項#x-packaction.auto_create_index: .security,.monitoring*,.watches,.triggered_watches,.watcher-history*重啟es安裝kibanahttps://artifacts.elastic.co/downloads/kibana/kibana-5.2.0-linux-x86_64.tar.gztar zxvf kibana-5.2.0-linux-x86_64.tar.gz./kibana-plugin install x-pack修改配置cat kibana.ymlserver.host: "192.168.80.11"elasticsearch.url: "http://192.168.80.11:9200"啟動nohup ./kibana &http://192.168.80.11:5601默認賬號: elastic 和 changeme 其實我們能用到的功能也就Dev tools和Monitoring壓測ES---Rally安裝使用github上提供了rally作為elasticsearch的性能測試工具,較好的解決了es性能測試問題。依賴環境:python3.4+pip3JDK8git1.9+Gradle2.13+(可選如果需要從源代碼編譯則需要)python3 與 pip3 安裝與使用yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-develtar zxvf Python-3.5.2.tgzcd Python-3.5.2./configure --PRefix=/usr/local/python3make && make install mv /usr/bin/python /usr/bin/python_oldln -s /usr/local/python3/bin/python3.5 /usr/bin/pythonpython --versionln -s /usr/python3.5/bin/pip3.5 /usr/bin/pip 安裝完成默認就有pip3了yum install gcc perl-ExtUtils-MakeMaker curl-devel expat-devel gettext-devel openssl-devel zlib-develyum remove gittar xzf git-2.11.0.tar.gzcd git-2.11.0make prefix=/usr/local/git allmake prefix=/usr/local/git installecho "export PATH=$PATH:/usr/local/git/bin" >> /etc/profilesource /etc/profilegit --versionjdk安裝解壓即可java -versionjava version "1.8.0_112"安裝gradleGradle 是一款構建工具,繼 Ant 、Maven 之后的現代構建工具。http://services.gradle.org/distributions/gradle-2.13-all.zipmkdir /opt/gradleunzip -d /opt/gradle gradle-2.13-all.zipcat /etc/profileexport PATH=$PATH:/opt/gradle/gradle-2.13/binsource /etc/profilegradle -v安裝esrally (其實絕對路徑即可)pip3 install esrally 由于elasticsearch的運行必須非root賬戶。esrally建議用非root賬戶執行?!皉ace”表示Rally一次壓測過程。你可以使用不同的數據集(稱之為tracks)來進行壓測。非root用戶(es用戶)初始化./esrally configureEnter the JDK 8 root directory:: /export/servers/jdk1.8.0_112下載數據集./esrally list tracks
./esrally --distribution-version=5.2.0
參考文檔:https://github.com/elastic/rally
【原創】原創文章,更多關注敬請關注微信公眾號。
新聞熱點
疑難解答