Posts

Showing posts from 2016

Download Entire site using wget

To download a entire website using this wget command wget --mirror -p --convert-links -P ./LOCAL-DIR WEBSITE-URL –mirror   : turn on options suitable for mirroring. -p   : download all files that are necessary to properly display a given HTML page. --convert-links   : after the download, convert the links in document for local viewing. -P ./LOCAL-DIR   : save all the files and directories to the specified directory. WEBSITE-URL : Url of the site to be downloaded  

Setup elasticsearch behind nginx server

Setup elasticsearch behind nginx server Install nginx server sudo apt-get update sudo  apt-get install nginx If already nginx exists in the system, check if it’s latest version. To check the version guidanz-devaraj@guidanzlocal:~$ nginx -v nginx version: nginx/1.1.19 To start , stop, check status of  the server  guidanz-devaraj@guidanzlocal:~$ sudo service nginx status * nginx is not running guidanz-devaraj@guidanzlocal:~$ sudo service nginx start Starting nginx: nginx. guidanz-devaraj@guidanzlocal:~$ sudo service nginx status * nginx is running guidanz-devaraj@guidanzlocal:~$ sudo service nginx stop Stopping nginx: nginx. guidanz-devaraj@guidanzlocal:~$ sudo service nginx status * nginx is not running To confirm the nginx is working or not. Check localhost:80 is working in the browser. It will reply as Welcome to nginx! Setup elasticsearch Before setup the nginx server install elasticsearch. https://www.elastic.co/gu...