Redis Init


## make 
```typewget http://download.redis.io/redis-stable.tar.gztar xvzf redis-stable.tar.gzcd redis-stablemakesudo make install```

### config
```typesudo mkdir /etc/redissudo mkdir /var/redissudo cp utils/redis_init_script /etc/init.d/redis_6379sudo cp redis.conf /etc/redis/6379.confsudo mkdir /var/redis/6379sudo nano /etc/redis/6379.conf```

- Set daemonize to yes (by default it is set to no)
- Set the dir to /var/redis/6379 (very important step!)
- bind 0.0.0.0


### daomon
```typesudo update-rc.d redis_6379 defaultssudo /etc/init.d/redis_6379 start```

### centos
```typesudo chkconfig  redis_6379 defaultssudo /etc/init.d/redis_6379 start```


### check
```typeredis-cli savels /var/redis/6379# dumb.rdbredis-cli ping```



> [Redis Quick Start - Redis](https://redis.io/topics/quickstart)

> [Open Redis port for remote connections](https://stackoverflow.com/questions/19091087/open-redis-port-for-remote-connections)





