redis installation deployment --- redis (1)

Installation phase:
1. Download https://redis.io/download to the official website to download
2. After the download, unzip
3. Once unpacked into the folder
4. Execute the make command
(If the make command problems, it is likely to be related not installed gcc compiler, if it is Uantu18 system only needs to execute two commands:
1.sudo apt update (update the list of packages)
2.sudo apt install build-essential (installation package build-essential, which contains a bunch of new package gcc, g ++ make, and the like)
3. If you do not worry you can use gcc --version detection
Ubuntu 18.04 repositories available in the default GCC version 7.4.0
5. After successful compilation, into the src folder, run make install Redis be installed
This, the installation is complete, the next deployment.
 
Deployment phase
6. In order to facilitate the management, the configuration file conf Redis files and frequently used commands move to unified file (you can skip, but they have to know to skip the configuration files and startup files in which)
1. Create a file bin and etc
2. Back to the newly installed directory, find redis.conf, copy it to move to the etc folder in the file you just created
3. Go to the src directory, move mkreleasehdr.sh redis-benchmark redis-check-aof redis-check-rdb redis-cli redis-server file to the bin folder you just created
7 Do redis-server start redis, will see a square box of 3D. Press ctrl + c to exit
8. Because redis default background is not started, so we need to modify his configuration
Etc into the folder, modify the configuration file redis.conf, will daemonize property to yes
If you need to modify the default IP address binding, you can ping back address to address needs
 
9. The final step, start redis service again, and specify the configuration file to start the service
redis-server etc/redis.conf
 

Guess you like

Origin www.cnblogs.com/lockXie/p/11784192.html