Up and runnig Redis and Redsmin
I use a lot of various cache technology. for example read this my topic How Linux Net Core 3.1 daemon (in VB.NET) can read/write data from/to ancient MS SQL 2005, this is my own implementation of cached WCF server, but in this topic I show simplest way to up and running own cache server for various purposes.
# sudo apt install redis-server # sudo systemctl enable redis-server.service
# sudo vim /etc/redis/redis.conf
And bind Redis to any address (in fact expose it to inet), set password and max-memory limit. I recommend you set limit as a half of RAM.
# maxmemory 2gb # maxmemory-policy allkeys-lru # bind 0.0.0.0 # requirepass kiYBi7aufl4MILv1nxBqR4L6NNz
Than restart it, check port and memory.
# sudo systemctl restart redis # sudo systemctl status redis # sudo netstat -lnp | grep redis
Next step going inside and check how it working.
# redis-cli #127.0.0.1:6379> auth kiYBi7aufl4MILv1nxBqR4L6NNz OK #127.0.0.1:6379> ping PONG #127.0.0.1:6379> set test "It's working!" OK #127.0.0.1:6379> get test It's working! #127.0.0.1:6379> info ... #127.0.0.1:6379> exit
|<SITEMAP> <MVC> <ASP> <NET> <DATA> <KIOSK> <FLEX> <SQL> <NOTES> <LINUX> <MONO> <FREEWARE> <DOCS> <ENG> <MAIL ME> <ABOUT ME> < THANKS ME>|