Redis Download Https://redis.io/download
wget http://download.redis.io/releases/redis-3.2.6.tar.gz
Unzip
tar xzf redis-3.2. 6. tar. gz
Enter the extracted files directory
CD redis-3.2. 6
Redis installation is relatively straightforward and straightforward to compile
Make
To create a storage Redis file directory
mkdir -p/usr/local/redis
Copy Redis-server Redis-cli to the newly created folder
CP./REDIS-SERVER/USR/LOCAL/REDIS/CP./redis-cli/usr/local/redis/
Copy a Redis configuration file
Cd.. CP redis.conf/usr/local/redis/
Editing a configuration file
cd/usr/local/redis/
Vim redis.conf
Change to Yes background run
Add Boot start Service
Vim/etc/systemd/system/redis-server.service
Paste a little bit of content
[unit]description=the redis-server Process managerafter=syslog.target network.target[service ]type=simplepidfile=/var/run/redis_6379.pidexecstart=/usr/local/redis/redis-server/usr/ local/redis/redis.conf execreload=/bin/kill -USR2 $MAINPIDExecStop=/bin/Kill -SIGINT $MAINPID [Install]wantedby=multi-user.target
Set boot up
Systemctl daemon-Reload systemctl start Redis-server.service systemctl enable Redis- Server.service
Check if the installation is successful
To create a redis command soft connection
LN -s/usr/local/redis/redis-cli/usr/bin/redis
Test Redis
Installation Complete
CENTOS7 Installing Redis boot up