comando cap para instalar, iniciar, reiniciar, parar elasticsearch no servidor ubuntu
namespace :elasticsearch do desc “Install elasticsearch” task :install do on roles(:app) do execute “sudo apt-get update” execute “sudo apt-get install openjdk-7-jre-headless -y” execute “cd /tmp” execute “wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-2.3.2.deb” execute “sudo …
Continuar lendo