Skip to content

Instantly share code, notes, and snippets.

@kucaahbe
Last active January 24, 2017 14:21

Revisions

  1. kucaahbe revised this gist Feb 11, 2013. 2 changed files with 4 additions and 9 deletions.
    4 changes: 4 additions & 0 deletions dotdeb.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@

    add dotdeb repository: http://www.dotdeb.org/instructions/
    sudo aptitude install redis-server # for stable
    sudo aptitude -t stable install redis-server # for testing
    9 changes: 0 additions & 9 deletions from-unstable.txt
    Original file line number Diff line number Diff line change
    @@ -1,9 +0,0 @@
    /etc/apt/apt.conf :
    APT::Default-Release "stable";

    cat /etc/apt/sources.list.d/unstable.list
    !!!check the country!!!
    deb http://http.US.debian.org/debian unstable main contrib non-free

    sudo aptitude update
    sudo aptitude -t unstable install
  2. kucaahbe revised this gist Feb 11, 2013. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions from-unstable.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    /etc/apt/apt.conf :
    APT::Default-Release "stable";

    cat /etc/apt/sources.list.d/unstable.list
    !!!check the country!!!
    deb http://http.US.debian.org/debian unstable main contrib non-free

    sudo aptitude update
    sudo aptitude -t unstable install
  3. kucaahbe created this gist Feb 1, 2013.
    30 changes: 30 additions & 0 deletions redis-install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    wget redis
    cd redis
    make
    # make test # sudo aptitude install sudo aptitude install tcl8.5 in order to run tests
    sudo make install # /target -> /usr/local/bin

    sudo mkdir /etc/redis/
    sudo cp redis.conf /etc/redis/6379.conf
    sudo cp utils/redis_init_script /etc/init.d/redis-server

    #! /bin/sh
    ### BEGIN INIT INFO
    # Provides: skeleton
    # Required-Start: $remote_fs $syslog
    # Required-Stop: $remote_fs $syslog
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: Example initscript
    # Description: This file should be used to construct scripts to be
    # placed in /etc/init.d.
    ### END INIT INFO

    sudo update-rc.d redis-server defaults
    sudo update-rc.d redis-server enable

    TODO
    daemonize redis
    check pid and port in config file and init script
    create user
    logging