Redisredis Installing on Linux
- Uploading redis-3.0.7.tar.gz to a Linux virtual machine
- Compile:
A) because Redis is a C language development, you need to compile first, build on Linux needs to rely on the GCC environment, if you do not install GCC environment, need to install GCC: Execute command: Yum install gcc-c++
Redis data types
b) Create a Redis directory (mkdir Redis) in/usr/local and copy redis-3.0.7.tar.gz to this directory (Cy/root/redis-3.0.7.tar.gz/usr/local/redis) for decompression (TAR–XVF redis-3.0.7.tar.gz), enter the folder after decompression (CD redis-3.0.7), if not executed permissions must first add permissions (chmod +x redis-3.0.7.tar.gz) compile (make), to install ( Make Prefix=/usr/local/redis install) specified in the Redis directory before us
c) Go to the bin directory, run Redis (./redis-server), and if you want to use it, you cannot close
d) Create a new connection to open the client (./redis-cli)
e) test
f) After testing no problem, then configure Linux under the background to start Redis (can close the window) into the extracted directory redis-3.0.7, the directory under the redis.conf copy to, the installation folder under the Bin directory
g) Modify permissions (chmod 777 redis.conf)
h) Modify daemonize in configuration file redis.conf default to no set to Yes, save and exit
i) querying whether Redis starts Ps-aux | grep Redis
Installing Redis on Linux