`

ubuntu-16.04-desktop-amd64 Linux 安装 redis-3.2.0.tar.gz

 
阅读更多

 

 

adminroot@ubuntu:~$ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
adminroot@ubuntu:~$ su
Password:
root@ubuntu:/home/adminroot# mkdir /usr/local/redis
root@ubuntu:/home/adminroot# cd /usr/local/src
root@ubuntu:/usr/local/src# wget http://download.redis.io/releases/redis-3.2.0.tar.gz
--2016-05-21 17:15:47--  http://download.redis.io/releases/redis-3.2.0.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: 1525900 (1.5M) [application/x-gzip]
Saving to: ‘redis-3.2.0.tar.gz’

redis-3.2.0.tar.gz  100%[===================>]   1.46M   659KB/s    in 2.3s   

2016-05-21 17:15:50 (659 KB/s) - ‘redis-3.2.0.tar.gz’ saved [1525900/1525900]

root@ubuntu:/usr/local/src# tar xvzf redis-3.2.0.tar.gz
root@ubuntu:/usr/local/src# ln -s redis-3.2.0 redis
root@ubuntu:/usr/local/src# cd redis
root@ubuntu:/usr/local/src/redis# make prefix=/usr/local/redis install
root@ubuntu:/usr/local/src/redis# make install
root@ubuntu:/usr/local/src/redis# cd /usr/local/bin
root@ubuntu:/usr/local/bin# ls
redis-benchmark  redis-check-rdb  redis-sentinel
redis-check-aof  redis-cli        redis-server
root@ubuntu:/usr/local/bin# cd /usr/local/src/redis
root@ubuntu:/usr/local/src/redis# cp redis.conf /etc/redis.conf
root@ubuntu:/usr/local/src/redis# netstat -ntlp|grep 6379
root@ubuntu:/usr/local/bin# ps -ef|grep redis
root       6181   2706  0 17:37 pts/1    00:00:00 grep --color=auto redis
root@ubuntu:/home/adminroot# apt-get install openssh-server
root@ubuntu:/home/adminroot# killall -9 redis-cli
root@ubuntu:/home/adminroot# vi /etc/redis
root@ubuntu:/home/adminroot# redis-server &
adminroot@ubuntu:~$ redis-cli
127.0.0.1:6379> set foo bar
OK
127.0.0.1:6379> get foo
"bar"
127.0.0.1:6379>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics