Redis installation and running One, Windows environment installation, running the author's version for Redis 3.2, download link redis3.2-win32.zip download directly after the decompression does not need to install, the operation needs to enter the cmd window,
Run Redis-server.exe redis.windows.conf redis.windows.conf is a Redis profile and will be explained in a subsequent article
The window cannot be closed after a successful run, or it is equivalent to a closed database
Client start: Open another command window run Redis-cli.exe II, Linux Environment installation download compression package redis-3.2.5.tar.gz or to the author's resources page download redis-3.2.5.tar.gz unzip, compile tar zvxf redis -3.2.5.tar.gz
After make compiles, you can see that the extract file redis-3.2.5 will have the corresponding SRC, conf and other folders, which is installed under Windows to install the extracted files, most of the installation package will have corresponding class files, configuration files and some command files. After the compilation is successful, go to the src folder, execute make install, and configure the configuration file for the redis.conf file under the ETC directory in the Linux environment.
Start the Redis-server command and go to the bin directory to execute the following command (which is performed by default in redis.conf)
./redis-server
Start the client redis-cli, and also execute the following command in the bin directory
./redis-cli