{"id":13337,"date":"2025-12-20T11:36:15","date_gmt":"2025-12-20T06:06:15","guid":{"rendered":"https:\/\/www.youstable.com\/blog\/?p=13337"},"modified":"2025-12-20T11:36:17","modified_gmt":"2025-12-20T06:06:17","slug":"how-to-setup-redis-on-linux-server","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/how-to-setup-redis-on-linux-server","title":{"rendered":"How to Setup Redis on Linux Server &#8211; Easy Guide"},"content":{"rendered":"\n<p><strong>To set up Redis on a Linux server<\/strong>, install Redis from your distro\u2019s repository, enable and start the systemd service, secure it with bind and password\/ACLs, restrict the firewall, configure persistence <strong>(RDB\/AOF)<\/strong>, tune memory and kernel settings, then verify with redis-cli. Follow the step-by-step guide below to deploy a fast, secure Redis instance.<\/p>\n\n\n\n<p>In this guide, you\u2019ll learn how to setup Redis on Linux server the right way installation, configuration, security hardening, persistence, performance tuning, testing, and integration with applications like WordPress. I\u2019ll walk you through commands for Ubuntu\/Debian and RHEL based distros, plus best practices from 12+ years deploying Redis in production.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"what-is-redis-and-why-use-it\"><strong>What is Redis and Why Use it?<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2848\" height=\"1600\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2025\/12\/image-75.png\" alt=\"What Is Redis and Why Use It?\" class=\"wp-image-13479\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2025\/12\/image-75.png 2848w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2025\/12\/image-75-150x84.png 150w\" sizes=\"auto, (max-width: 2848px) 100vw, 2848px\" \/><\/figure>\n\n\n\n<p>Redis is an in-memory data store used as a cache, database, and message broker. It dramatically <a href=\"https:\/\/www.youstable.com\/blog\/optimizing-wordpress-loading-speed\/\">speeds up web apps and WordPress by reducing database load<\/a> and latency. Typical use cases include page caching, session storage, rate limiting, queues, and real-time analytics.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"prerequisites-and-system-requirements\"><strong>Prerequisites and System Requirements<\/strong><\/h2>\n\n\n\n<p><strong>Before you install <a href=\"https:\/\/www.youstable.com\/blog\/configure-redis-on-linux\/\">Redis on Linux<\/a>, ensure the following basics are covered.<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"what-you-need\"><strong>What You Need<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Supported Linux server (Ubuntu 20.04\/22.04\/24.04, Debian 11\/12, Rocky\/Alma\/CentOS Stream 8+, RHEL 8\/9)<\/li>\n\n\n\n<li>Root or sudo access<\/li>\n\n\n\n<li>Open local port 6379 (do not expose publicly)<\/li>\n\n\n\n<li>Basic shell knowledge<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"install-redis-on-linux\"><strong>Install Redis on Linux<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"ubuntu-debian-apt\"><strong>Ubuntu\/Debian (APT)<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt install -y redis-server\n<\/code><\/pre>\n\n\n\n<p>APT packages are stable and include a systemd service. The default configuration file is at \/etc\/redis\/redis.conf.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"rhel-centos-stream-rocky-almalinux-dnf-yum\"><strong>RHEL, CentOS Stream, Rocky, AlmaLinux (DNF\/YUM)<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># Enable EPEL if needed\nsudo dnf install -y epel-release\nsudo dnf install -y redis\n\n# Or on older YUM-based systems\n# sudo <a href=\"https:\/\/www.youstable.com\/blog\/install-yum-on-linux\/\">yum install<\/a> -y epel-release\n# sudo yum install -y redis\n<\/code><\/pre>\n\n\n\n<p>The default configuration path is usually \/etc\/redis\/redis.conf and the service name is redis or redis.service depending on the package.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"build-the-latest-redis-from-source-optional\"><strong>Build the Latest Redis from Source (Optional)<\/strong><\/h2>\n\n\n\n<p>Building from source gets you the latest features and performance improvements, useful for edge cases or new features.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update &amp;&amp; sudo apt install -y build-essential tcl wget\n# or: sudo dnf groupinstall -y \"Development Tools\" &amp;&amp; sudo dnf install -y tcl wget\n\nwget https:\/\/download.redis.io\/redis-stable.tar.gz\ntar xzf redis-stable.tar.gz\ncd redis-stable\nmake -j$(nproc)\nsudo make install\n# Optional test:\nmake test\n<\/code><\/pre>\n\n\n\n<p>For source installs, create your own systemd unit and config directory (e.g., \/etc\/redis\/redis.conf). For most users, distro packages are simpler and safer to maintain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"start-enable-and-verify-redis\"><strong>Start, Enable, and Verify Redis<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl enable --now redis\nsudo systemctl status redis --no-pager\n<\/code><\/pre>\n\n\n\n<p>Test connectivity:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-cli ping\n# Expected: PONG\n<\/code><\/pre>\n\n\n\n<p>If you installed via APT, Ubuntu may start Redis in supervised mode by default. Logs are available via journalctl -u redis.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"secure-redis-do-not-expose-port-6379\"><strong>Secure Redis (Do Not Expose Port 6379)<\/strong><\/h2>\n\n\n\n<p>Security is critical. By default, Redis trusts localhost. Never expose Redis directly to the internet. Use localhost bindings, strong authentication, and firewalls.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"bind-and-protected-mode\"><strong>Bind and Protected Mode<\/strong><\/h3>\n\n\n\n<p><a href=\"https:\/\/www.youstable.com\/blog\/edit-wp-config-php-file\/\">Edit the main config file<\/a> (\/etc\/redis\/redis.conf on most systems):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/redis\/redis.conf\n# Ensure these are set:\nbind 127.0.0.1 ::1\nprotected-mode yes\nsupervised systemd\n<\/code><\/pre>\n\n\n\n<p>Restart to apply:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart redis\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"set-a-password-or-use-acls\"><strong>Set a Password or Use ACLs<\/strong><\/h3>\n\n\n\n<p>For single-user authentication, set requirepass. For multi-app environments, use ACLs to define users and per-command permissions.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># redis.conf\nrequirepass &lt;STRONG_RANDOM_PASSWORD&gt;\n\n# Or ACLs (preferred for complex setups):\n# In conf or via redis-cli:\n# user app on &gt;password ~* +@all\n<\/code><\/pre>\n\n\n\n<p>Test authentication:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-cli -a &lt;STRONG_RANDOM_PASSWORD&gt; ping\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"firewall-allow-only-local-or-trusted-hosts\"><strong>Firewall: Allow Only Local or Trusted Hosts<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># UFW (Ubuntu\/Debian) - block external access by default\nsudo ufw deny 6379\/tcp\n\n# Firewalld (RHEL\/Rocky\/Alma)\nsudo firewall-cmd --permanent --add-rich-rule='rule family=\"ipv4\" port protocol=\"tcp\" port=\"6379\" reject'\nsudo firewall-cmd --reload\n<\/code><\/pre>\n\n\n\n<p>If a remote app must connect, allow only its IP and use a private network or SSH tunnel\/VPN.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"use-a-unix-socket-optional\"><strong>Use a Unix Socket (Optional)<\/strong><\/h2>\n\n\n\n<p>Sockets are faster and limit exposure to local processes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># redis.conf\nunixsocket \/run\/redis\/redis.sock\nunixsocketperm 770\n# Add your web user (e.g., www-data or nginx) to redis group\nsudo usermod -aG redis www-data\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"configure-persistence-and-data-safety\"><strong>Configure Persistence and Data Safety<\/strong><\/h2>\n\n\n\n<p>Redis supports RDB snapshots (periodic) and AOF (Append Only File) for durability. Choose based on data criticality and performance needs.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"rdb-snapshots\"><strong>RDB Snapshots<\/strong><\/h3>\n\n\n\n<p>Good default for caches and many web apps:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># redis.conf\nsave 900 1\nsave 300 10\nsave 60 10000\nstop-writes-on-bgsave-error yes\nrdbcompression yes\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"aof-append-only-file\"><strong>AOF (Append Only File)<\/strong><\/h3>\n\n\n\n<p>Better durability; slightly more I\/O.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># redis.conf\nappendonly yes\nappendfsync everysec\nauto-aof-rewrite-percentage 100\nauto-aof-rewrite-min-size 64mb\n<\/code><\/pre>\n\n\n\n<p>You can combine RDB + AOF for safety and faster restarts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"performance-tuning-for-production\"><strong>Performance Tuning for Production<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"set-max-memory-and-eviction-policy\"><strong>Set Max Memory and Eviction Policy<\/strong><\/h3>\n\n\n\n<p>Define memory limits and how Redis evicts keys when full. For a pure cache, use an LRU-style policy.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># redis.conf\nmaxmemory 2gb\nmaxmemory-policy allkeys-lru\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"tune-the-linux-kernel\"><strong>Tune the Linux Kernel<\/strong><\/h3>\n\n\n\n<p>Apply proven kernel settings for Redis servers.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Disable Transparent Huge Pages (THP)\necho never | sudo tee \/sys\/kernel\/mm\/transparent_hugepage\/enabled\necho \"echo never &gt; \/sys\/kernel\/mm\/transparent_hugepage\/enabled\" | sudo tee \/etc\/rc.local &amp;&amp; sudo chmod +x \/etc\/rc.local\n\n# Overcommit memory\necho \"vm.overcommit_memory=1\" | sudo tee \/etc\/sysctl.d\/99-redis.conf\n\n# Increase backlog\necho \"net.core.somaxconn=1024\" | sudo tee -a \/etc\/sysctl.d\/99-redis.conf\n\n# Apply\nsudo sysctl --system\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"enable-slow-log-and-basic-monitoring\"><strong>Enable Slow Log and Basic Monitoring<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># redis.conf\nslowlog-log-slower-than 10000   # microseconds (10ms)\nslowlog-max-len 256\n<\/code><\/pre>\n\n\n\n<p>View slowlog:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-cli slowlog get 10\nredis-cli info memory\nredis-cli info stats\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"test-redis-and-common-cli-tasks\"><strong>Test Redis and Common CLI Tasks<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"basic-operations\"><strong>Basic Operations<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-cli\n127.0.0.1:6379&gt; set site \"youstable\"\nOK\n127.0.0.1:6379&gt; get site\n\"youstable\"\n127.0.0.1:6379&gt; incr counter\n(integer) 1\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"benchmark\"><strong>Benchmark<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>redis-benchmark -q -n 10000 -c 50 -P 10\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"connect-from-applications\"><strong>Connect from Applications<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PHP: Install phpredis and point to localhost:6379 or the Unix socket.<\/li>\n\n\n\n<li>Python: <a href=\"https:\/\/www.youstable.com\/blog\/install-pip-on-ubuntu\/\">pip install<\/a> redis and connect via redis.Redis(host=&#8221;localhost&#8221;, port=6379).<\/li>\n\n\n\n<li>Node.js: npm i redis and use createClient().<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"wordpress-enable-redis-object-cache\"><strong>WordPress: Enable Redis Object Cache<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install a plugin like \u201cRedis Object Cache\u201d or \u201cObject Cache Pro\u201d (premium).<\/li>\n\n\n\n<li>Ensure Redis is running locally, set a password or socket.<\/li>\n\n\n\n<li>In <a href=\"https:\/\/www.youstable.com\/blog\/edit-wp-config-php-file-in-wordpress\/\">wp-config.php<\/a>, define Redis host and auth if required.<\/li>\n\n\n\n<li>Enable object cache in the plugin and <a href=\"https:\/\/www.youstable.com\/blog\/install-selinux-on-linux\/\">check the connection status<\/a>.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ wp-config.php\ndefine( 'WP_REDIS_HOST', '127.0.0.1' );\ndefine( 'WP_REDIS_PORT', 6379 );\ndefine( 'WP_REDIS_PASSWORD', '&lt;STRONG_PASSWORD&gt;' );\n\/\/ Or use Unix socket:\n\/\/ define( 'WP_REDIS_PATH', '\/run\/redis\/redis.sock' );\n<\/code><\/pre>\n\n\n\n<p>Object caching can cut database queries drastically and improve TTFB for logged-in users and dynamic pages.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"troubleshooting-quick-checks\"><strong>Troubleshooting Quick Checks<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Service won\u2019t start: check sudo journalctl -u redis and config syntax errors.<\/li>\n\n\n\n<li>Cannot connect: confirm bind 127.0.0.1, firewall rules, and that Redis is listening (ss -ltnp | grep 6379).<\/li>\n\n\n\n<li>Performance issues: verify THP disabled, proper maxmemory, and eviction policy.<\/li>\n\n\n\n<li>Data loss on reboot: enable RDB\/AOF and confirm permissions on \/var\/lib\/redis.<\/li>\n\n\n\n<li>AUTH errors: ensure app credentials match requirepass or ACL user settings.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"scaling-redis-sentinel-or-cluster-when-you-need-ha\"><strong>Scaling: Redis Sentinel or Cluster (When You Need HA)<\/strong><\/h2>\n\n\n\n<p>For high availability, use Redis Sentinel to monitor a master and automate failover to replicas. For horizontal scaling and massive datasets, use Redis Cluster with sharding. Both require careful network planning, authentication, and consistent configuration across nodes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"managed-redis-with-youstable\"><strong>Managed Redis with YouStable<\/strong><\/h2>\n\n\n\n<p>If you\u2019d rather skip maintenance and tuning, YouStable\u2019s managed VPS and cloud hosting can deliver pre-optimized Redis with security hardening, monitoring, and backups. Our team handles installation, upgrades, and performance tuning so your apps stay fast and reliable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"frequently-asked-questions\"><strong>Frequently Asked Questions<\/strong><\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1765796796251\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"is-it-safe-to-expose-redis-to-the-internet\"><strong>Is it safe to expose Redis to the internet?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>No. Redis should not be publicly accessible. Bind to 127.0.0.1, enable protected-mode, require authentication (password\/ACLs), and restrict access with a firewall or private network\/VPN. If remote access is required, use SSH tunneling or a private VPC.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1765796805066\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"how-much-ram-does-my-redis-server-need\"><strong>How much RAM does my Redis server need?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Size RAM based on your dataset plus overhead. As a cache, allocate slightly more than working set and set maxmemory with an eviction policy. For persistent workloads, add room for RDB\/AOF and background rewrite peaks. Monitor used_memory and fragmentation via INFO.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1765796812082\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"should-i-use-rdb-or-aof\"><strong>Should I use RDB or AOF?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>For caching, RDB only is often enough. For durable data (queues, sessions you cannot lose), enable AOF with appendfsync everysec and keep RDB as a backup. Combining both yields faster restarts and better resilience.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1765796819839\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"how-do-i-flush-the-redis-cache-safely\"><strong>How do I flush the Redis cache safely?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Use redis-cli -a &lt;password&gt; FLUSHDB to clear the current database or FLUSHALL to clear all databases. In multi-tenant systems, target specific DB numbers (SELECT 0..15) to avoid impacting other apps. Always confirm the environment before flushing.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1765796828000\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \" class=\"rank-math-question \" id=\"how-can-i-monitor-redis-in-production\"><strong>How can I monitor Redis in production?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Track latency, ops\/sec, memory, evictions, and persistence via INFO, Slow Log, and tools like Redis Exporter for Prometheus\/Grafana. Consider enabling AOF rewrite metrics and monitoring disk I\/O. Log rotation and alerting on key thresholds are essential.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\" class=\"wp-block-heading\" id=\"final-thoughts\"><strong>Final Thoughts<\/strong><\/h2>\n\n\n\n<p>Now you know how to setup Redis on Linux server securely and efficiently\u2014installation, configuration, security, durability, and tuning. Start local-only, add authentication, choose the right persistence, and tune memory and kernel settings. When scale and uptime matter, plan Sentinel or Cluster\u2014or let YouStable manage it for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To set up Redis on a Linux server, install Redis from your distro\u2019s repository, enable and start the systemd service, [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":15575,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"iawp_total_views":5,"footnotes":""},"categories":[350],"tags":[],"class_list":["post-13337","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledgebase"],"acf":[],"featured_image_src":"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2025\/12\/How-to-Setup-Redis-on-Linux-Server.jpg","author_info":{"display_name":"Prahlad Prajapati","author_link":"https:\/\/www.youstable.com\/blog\/author\/prahladblog"},"_links":{"self":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/13337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/comments?post=13337"}],"version-history":[{"count":5,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/13337\/revisions"}],"predecessor-version":[{"id":15576,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/13337\/revisions\/15576"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/15575"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=13337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=13337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=13337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}