Install Redis 3.2 on Ubuntu

Install Redis 3.2 on Ubuntu

It’s very easy to install Redis 3 on Ubuntu 16, just need to add PPA repository to your OS:redis

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

Now you have to update your repositories list and install Redis:數據庫

apt-get update
apt-get install redis-server

You can see your Redis version by typing:ubuntu

redis-server --version

Start and check your Redis server status with the following commands:vim

systemctl start redis-serversystemctl status redis-server.service
service --status-all  --顯示所有服務列表等同於chkconfig --list

For testing your Redis server you can follow the instruction below:spa

redis-cli
> set test "HugeServer"
> get test

運行結果爲: 「HugeServer」.net

配置文件:修改/etc/redis/redis.conf配置文件中的數據庫存放路經,日誌存放路經和綁定IP地址。Redis系列-配置文件小結日誌

 vim /etc/redis/redis.conf

 https://www.hugeserver.com/kb/install-redis-debian-ubuntu/code

相關文章
相關標籤/搜索