Build a stand-alone version of Redis under Linux

1. Download the redis official website:  http://download.redis.io/    download the installation package redis-stable.tar.gz

2. Upload to Linux environment and store in any directory

 

3. Unzip: tar zxvf redis-stable.tar.gz

 

4. Compile: make

 

5、 安装: make install PREFIX=/usr/local/redis   

6. After the installation is successful, there are the following files under / usr / local / redis / bin, indicating that the installation was successful

 

 7. Find the redis.conf file in the compilation directory and copy it to the installation directory cp redis.conf / usr / local / redis / bin /

 

 8. Redis 2 startup methods

1) Front-end startup method: ./redis-server ctrl + c close

 

 2) Back-end startup method: ./redis-server redis.conf 

 

 Check the process and find one more redis process

 

 9. Don't forget to modify the configuration in redis.conf when starting the backend daemonize yes defaults to no, otherwise the backend cannot be started

 

 10.The test link redis is executed in the installation directory./redis-cli  

 

 11. Execute a simple set get command so that the redis stand-alone version is installed

Guess you like

Origin www.cnblogs.com/zhanh247/p/12702359.html