天天看點

ubuntu下安裝redis

ubuntu版本 14.04

1 增加ppa  

  • sudo add-apt-repository ppa:chris-lea/redis-server

然後回車

2 update 

  • sudo apt-get update

3 安裝redis-server

  • sudo apt-get install redis-server -y

4測試啟動

  • redis-benchmark -q -n 1000 -c 10 -P 5

更多 請參考: https://www.digitalocean.com/community/tutorials/how-to-configure-a-redis-cluster-on-ubuntu-14-04