Redis in Linux installation is actually very simple, just before the installation of the use of Yum installation, but Yum installed when download speed is slow, and so half a day download do not want to get, today read the tutorial, direct make installation, installation method:
1, first on-line to find Redis and download, version does not matter, can be used on the line; Download finished upload to the Linux server;
2, Tar zxvf decompression Redis installation package (my installation package is redis.tar.gz, so with tar decompression);
3, after decompression into the decompression directory, and make compile;
4, after compiling will appear src directory, see the SRC directory inside the REDIS-CLI (Redis Terminal operation script), Redis-server (Start redis service script file);
5, in the/usr/local/directory to create a new redis/folder, and then redis-cli,redis-server,redis.conf (in the extracted Redis directory) three files copied to this directory;
6, start Redis-server, that is, enter the/usr/local/redis/directory, execute./redis-srver, this time can see the startup success of the page, but this is the front-end boot, when the press CTRL + C exit, Redis exited, So we need Redis background boot, this need to configure the redis.conf file, vi redis.conf, find about 17 lines to find Daemonize no this, the back of no change to Yes, so that Redis can be launched at the back end of the boot;
The start command takes the redis.conf file with the./redis-server redis.conf; Then you can pass Ps-a | grep Redis; See the Redis process;
This allows Redis to install OK, can login Redis to operate Redis, operation is very simple; the/REDIS-CLI command is ready to operate. The simple set name, Tom, is the data stored in name Tom, and the data is get name,
Installing Redis under Linux