One, stand-alone environment installation
//The installation steps of redis stand-alone environment are as follows: #Download the installation package wget http://download.redis.io/releases/redis-3.0.7.tar.gz #Unzip the .tar.gz file tar -zxvf redis-3.0.7.tar.gz #Enter the redis-3.0.7 file, compile cd redis-3.0.7 make
If there is no error in the compilation, the installation is complete, and executable files such as redis-server, redis-cli, and edis-benchmark will be generated in the redis-3.0.7/src/ directory.
Second, start the service to verify whether the installation is successful
#Start redis service cd /usr/local/redis-3.0.7/src ./redis-server ../redis.conf #Check if the service is started ps -aux | grep redis #Use client commands to operate ./redis-cli