{"id":1502,"date":"2022-02-17T05:52:00","date_gmt":"2022-02-17T05:52:00","guid":{"rendered":"https:\/\/www.ridiculously-simple.com\/?p=1502"},"modified":"2022-09-30T17:49:48","modified_gmt":"2022-09-30T17:49:48","slug":"redis-for-laravel-on-debian","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2022\/02\/17\/redis-for-laravel-on-debian\/","title":{"rendered":"redis for Laravel on Debian"},"content":{"rendered":"\n<p>If you are like me, running only your own projects on a server, you might want to skip authentication<\/p>\n\n\n\n<p>the changes I generally make to the file \/etc\/redis\/redis.conf are<\/p>\n\n\n\n<p>1- At the very beginning, limit the RAM redis can use with the line<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">maxmemory 2gb<\/pre>\n\n\n\n<p>2- Change the supervisor to systemd by modifying the line<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">supervised no<\/pre>\n\n\n\n<p>to<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">supervised systemd<\/pre>\n\n\n\n<p>Now, to test the new config, from the command line, run the following commands<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl restart redis-server\nredis-cli\nping\nconfig get maxmemory\nquit<\/pre>\n\n\n\n<p>You have just configured redis and tested your new settings.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are like me, running only your own projects on a server, you might want to skip authentication the changes I generally make to the file \/etc\/redis\/redis.conf are 1- At the very beginning, limit the RAM redis can use with the line maxmemory 2gb 2- Change the supervisor to systemd by modifying the line [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[124,4,123],"tags":[],"class_list":["post-1502","post","type-post","status-publish","format-standard","hentry","category-laravel","category-linux","category-php"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=1502"}],"version-history":[{"count":2,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1502\/revisions"}],"predecessor-version":[{"id":1504,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1502\/revisions\/1504"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=1502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=1502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=1502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}