{"id":6432,"date":"2021-05-20T15:19:01","date_gmt":"2021-05-20T09:49:01","guid":{"rendered":"https:\/\/www.skynats.com\/?p=6432"},"modified":"2021-11-02T16:29:47","modified_gmt":"2021-11-02T10:59:47","slug":"how-to-install-redis-on-centos-8","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/how-to-install-redis-on-centos-8\/","title":{"rendered":"How to Install Redis on Centos 8"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Redis is an in-memory key-value data store that excels at caching and is open-source. Redis is a non-relational database that is well-known for its versatility, scalability, and language support.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Installing Redis<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dnf install redis<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Configure Redis to use with systemd service. Use a text editor to open this file like vim<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/redis.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The supervised directive can be found within the file. Since you run CentOS using the systemd init system, change it to systemd<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Note: these supervision methods only signal \"process is ready.\"\n#       They do not enable continuous liveness pings back to your supervisor.\n<span style=\"color:#6f6e6e\" class=\"has-inline-color\">supervised systemd<\/span><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After changing, start the Redis service and enable it on boot.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl start redis\nsystemctl enable redis<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">By running the following, you can check Redis status<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl status redis<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can test its functionality with this command once you have confirmed that Redis is in fact running<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-cli ping<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">PONG should be printed as the answer:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Output\nPONG<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This means that your server now includes Redis running successfully.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you need to configure Redis with all it&#8217;s security and maximum performance to boost your website speed, the setup will be covered FREE on our <a href=\"https:\/\/www.skynats.com\/linux-server-management\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span style=\"color:#026e9c\" class=\"has-inline-color\">server management<\/span><\/a> plan.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Redis is an in-memory key-value data store that excels at caching and is open-source. Redis is a non-relational database that is well-known for its versatility, scalability, and language support. 1. Installing Redis Configure Redis to use with systemd service. Use a text editor to open this file like vim The supervised directive can be found [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,277,358,68],"tags":[232,108,359,109,361,360],"class_list":["post-6432","post","type-post","status-publish","format-standard","hentry","category-blog","category-centos-8","category-redis","category-server-management","tag-centos-8","tag-how-to-install-redis","tag-install-redis-on-centos8","tag-redis","tag-redis-performance","tag-redis-setup"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=6432"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/6432\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=6432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=6432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=6432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}