Ubuntu 16.04: Redis installation


Step 1: Install Redis:
>sudo apt-get install redis-server

Step 2: Configuration
>sudo vim /etc/redis/redis.conf

Change the following lines
maxmemory 128mb
maxmemory-policy allkeys-lru

Step 3: Restart service
sudo service redis restart

Step 4: You may try the following commands to see if the redis is working properly
Monitor
redis-cli monitor

Command line tool
redis-cli

Clean cache
flushall




评论

此博客中的热门博文

Configure shadowsocks transparent proxy + gfwlist(PAC) on OpenWRT Router

Openwrt路由器上配置shadowsocks透明代理+gfwlist(PAC)

Configure V2Ray(Shadowsocks mode) + 加速:普通BBR/魔改BBR on KVM VPS (Tested on Ubuntu 16.04)