Last active
September 20, 2023 11:55
-
-
Save t0mst0ne/256c2ade9fb05d6ebe71 to your computer and use it in GitHub Desktop.
Install 1.5.2 elasticsearch on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install Elasticsearch | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get -y install oracle-java8-installer | |
wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add - | |
echo 'deb http://packages.elasticsearch.org/elasticsearch/1.5/debian stable main' | sudo tee /etc/apt/sources.list.d/ela | |
sticsearch.list | |
sudo apt-get update | |
sudo apt-get -y install elasticsearch=1.5.2 | |
# Install Kibana | |
cd ~; wget http://download.elastic.co/kibana/kibana/kibana-4.1.0-snapshot-linux-x64.tar.gz | |
tar xvf kibana-*.tar.gz | |
# vi ~/kibana-4*/config/kibana.yml | |
# add host: "localhost" | |
sudo mkdir -p /opt/kibana | |
sudo cp -R ~/kibana-4*/* /opt/kibana/ | |
cd /etc/init.d && sudo wget https://gist.githubusercontent.com/thisismitch/8b15ac909aed214ad04a/raw/bce61d85643c2dcdfbc2728c55a41dab444dca20/kibana4 | |
sudo chmod +x /etc/init.d/kibana4 | |
sudo update-rc.d kibana4 defaults 96 9 | |
sudo service kibana4 start | |
# Install Nginx | |
sudo apt-get install nginx apache2-utils | |
sudo htpasswd -c /etc/nginx/htpasswd.users admin | |
# sudo vi /etc/nginx/sites-available/default | |
# server { | |
# listen 80; | |
# | |
# server_name example.com; | |
# | |
# auth_basic "Restricted Access"; | |
# auth_basic_user_file /etc/nginx/htpasswd.users; | |
# | |
# location / { | |
# proxy_pass http://localhost:5601; | |
# proxy_http_version 1.1; | |
# proxy_set_header Upgrade $http_upgrade; | |
# proxy_set_header Connection 'upgrade'; | |
# proxy_set_header Host $host; | |
# proxy_cache_bypass $http_upgrade; | |
# } | |
#} | |
# Install Logstash | |
echo 'deb http://packages.elasticsearch.org/logstash/1.5/debian stable main' | sudo tee /etc/apt/sources.list.d/logstash.list | |
sudo apt-get update | |
sudo apt-get install logstash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment