I. Installation of Redis
1, the officer network Download Redis compression package, Address: http://redis.io/download
2, through the Remote management tool, the compressed package is copied to the Linux server, performing decompression operations
3. Execute make to compile the files after Redis decompression
After compiling, you can see the uncompressed file redis-3.0.7 will have the corresponding SRC, conf and other folders, this and Windows installation of the extracted files, the majority of the installation package will have the corresponding class files, configuration files and some command files.
4, after the successful compilation, into the SRC folder, execute make install for Redis installation
5, the installation is complete, the interface is as follows
ii. deployment of Redis
After the installation is successful, Redis is deployed below
1. First, in order to facilitate management, the Redis file in the Conf configuration file and common commands to the unified file
A) Create bin and redis.conf files
Mkdir-p/usr/local/redis/bin
Mkdir-p/usr/local/redis/ect
B Execute Linux file Move command:
Mv/lamp/redis-3.0.7/redis.conf/usr/local/redis/etc
cd/lamp/redis-3.0.7/src
mv mkreleasdhdr.sh Redis-benchmark redis-check-aof redis-check-dump redis-cli redis-server/usr/local/redis/bin
2, execute Redis-server command, start Redis service
Note: The Redis-server-initiated Redis service is run directly in the foreground (the effect is shown above), that is, after the command is executed, if LUnix closes the current session, the Redis service closes. Normally, the start of the Redis service needs to start from the background and specify the startup configuration file.
3, background start Redis service
A) First edit the Conf file and change the Daemonize property to Yes (indicating that you want to run in the background)
CD etc/
Vi redis.conf
b Start the Redis service again and specify start service profile
Redis-server/usr/local/redis/etc/redis.conf
4, after the successful launch of the server, the implementation redis-cli start Redis client, view the port number.
Reprint address Please refer to: http://www.jb51.net/article/79096.htm