Skip to content

Instantly share code, notes, and snippets.

View vitalybaev's full-sized avatar

Vitaly Baev vitalybaev

View GitHub Profile
VERSION=0.20.6
sudo apt-get update
sudo apt-get install openjdk-6-jdk
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$VERSION.deb
sudo dpkg -i elasticsearch-$VERSION.deb
# be sure you add "action.disable_delete_all_indices" : true to the config!!
@vitalybaev
vitalybaev / redis_server_debian_inid_script
Created August 27, 2012 21:57
Redis-server Debian init.d script
#!/bin/sh
### BEGIN INIT INFO
# Short-Description: Redis-server Daemon
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
### END INIT INFO
# Author: Vitaly Baev
#
# Please remove the "Author" lines above and replace them
@vitalybaev
vitalybaev / mongos
Created June 15, 2012 13:44 — forked from fabioperrella/mongos
MongoDB init script for Mongos in Debian
#!/bin/sh
#
# init.d script with LSB support.
#
# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
#
# This is free software; you may redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.