1, download the installation package Redis
Access https://redis.io/download , the latest version is 5.0.5, Download
2, install Redis
2.1 remote tool by importing the archive disk Linux work, my redis directory in the home directory, extract Redis archive by tar -zxvf redis-5.0.5.tar.gz command,
2.2 with a make command to compile Redis
Under normal circumstances the following
I'm here for environmental issues should compile error, direct attach this solution, if the compiler successfully please ignore;
2.2.1 compile-time error as follows
This is required when there is no cc command to compile find, after installing Linux systems Typically, these commands are built-in, the landlord this machine do not know what the reason, there is not even. . .
2.2.2 The solution is simple to install gcc on it, the command: yum install gcc
2.2.3 continue to make, or an error
2.2.4 But do not worry, execute the command: make MALLOC = libs
So far, the compiler is OK
2.3 deployment
2.3.1 In Redis command, conf Redis profile and common file command to move to the unified file, the command is
2.3.2 execute the following command
mv redis.conf /home/redis/redis/etc/
2.3.4 src directory into the mobile mkreleasehdr.sh redis-benchmark redis-check-aof redis-check-rdb redis-cli redis-server to the / usr / local / redis / bin /
执行命令 :mv mkreleasehdr.sh redis-benchmark redis-check-aof redis-check-rdb redis-cli redis-server /home/redis/redis/bin/
2.3.5 into the bin directory, start Redis
2.3.6 Set Background start Redis, will daemonize property to yes
Redis service start again, start the service and specify the configuration file
redis-server home/redis/redis/etc/redis.conf
Now, Redis formal installation is complete!
Log Redis data access, are very simple operation command, refer to my other article Redis out Chinese garbage problem , there are basic login and access commands, forgive landlord too lazy, not specifically listed . . .