1. Create sub-users (to start redis)
[Email protected] ~]# Useradd Redis
2. Switch to sub-user environment
[email protected] ~]# sudo su–redis
3. upload redis software or wget http://download.redis.io/releases/redis-3.2.6.tar.gz
[Email protected] ~]$ rz-y
RZ waiting to receive.
Starting Zmodem transfer. Pressctrl+c to cancel.
Transferring redis-3.2.6.tar.gz ...
100% 1508 KB 1508 kb/sec 00:00:01 0 Errors
[[email protected] ~]$ ls
Redis-3.2.6.tar.gz
4. Unzip the Redis file and install
[[email protected] ~]$ mkdir Run
[Email protected] ~]$ tar zxf redis-3.2.6.tar.gz–c run/
[Email protected] ~]$ CD run/redis-3.2.6/
[[email protected] redis-3.2.6]$ make
5. start redis(this starts with the default profile)
[Email protected] ~]$ ~/run/redis-3.2.6/src/redis-server~/run/redis-3.2.6/redis.conf &
[Email protected] ~]$ Netstat-lantup|grep Redis
(Not all processes could is identified, non-owned process info
Won't is shown, you wouldhave to is root to see it all.)
TCP 0 0127.0.0.1:6379[L1] 0.0.0.0:* LISTEN 8536/redis-server 1
[L1] the address of the default binding and the Port
This article from "Li Qunyan Blog" blog, reproduced please contact the author!
Redis stand-alone setup