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




评论

此博客中的热门博文

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

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

Using Haproxy + shadowsocks (ha + ss) to setup multi ss backend and load balance