Skip to content

Instantly share code, notes, and snippets.

View ivanfioravanti's full-sized avatar

Ivan Fioravanti ivanfioravanti

View GitHub Profile
#!/bin/sh
# http://vm-192-168-11-21.shengyun.grandcloud.cn/topics/2437
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: 2345 90 10
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid
1.CentOS 6.4
#yum groupinstall "Development tools"
$wget http://redis.googlecode.com/files/redis-2.6.14.tar.gz
$tar zxf redis-2.6.14.tar.gz
$cd redis-2.6.14
$make
$make install
//////
mkdir -p /usr/local/bin