接触linux不久,安装redis爬坑过来,在此记录分享!
一、安装redis
第一步:下载redis安装包
wget http://download.redis.io/releases/redis-4.0.6.tar.gz
[root@lin ~]$ wget http://download.redis.io/releases/redis-4.0.6.tar.gz
--2017-12-13 12:35:12-- http://download.redis.io/releases/redis-4.0.6.tar.gz
Resolving download.redis.io (download.redis.io)... 109.74.203.151
Connecting to download.redis.io (download.redis.io)|109.74.203.151|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1723533 (1.6M) [application/x-gzip]
Saving to: ‘redis-4.0.6.tar.gz’
100%[==========================================================================================================>] 1,723,533 608KB/s in 2.8s
2017-12-13 12:35:15 (608 KB/s) - ‘redis-4.0.6.tar.gz’ saved [1723533/1723533]
第二步:解压压缩包
tar -zxvf redis-4.0.6.tar.gz
[root@lin ~]$ tar -zxvf redis-4.0.6.tar.gz
第三步:yum安装gcc依赖
yum install gcc
[root@lin ~]$ yum install gcc
一路选择 Y 即可。
第四步:跳转到redis解压目录下
cd redis-4.0.6
[root@lin ~]$ cd redis-4.0.6