{"id":901,"date":"2025-01-31T22:02:49","date_gmt":"2025-01-31T21:02:49","guid":{"rendered":"https:\/\/kanuracer.eu\/?page_id=901"},"modified":"2025-01-31T22:12:51","modified_gmt":"2025-01-31T21:12:51","slug":"redis-object-cache","status":"publish","type":"page","link":"https:\/\/kanuracer.eu\/index.php\/linux\/debian\/wordpress\/redis-object-cache\/","title":{"rendered":"Redis Object Cache"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>System auf den neusten Stand bringen<\/strong><br><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><br><br><strong>Redis installieren<\/strong><br>Installiere Redis mit folgendem Befehl:<br><code>sudo apt install redis-server -y<\/code><br>Nach der Installation kannst du \u00fcberpr\u00fcfen, ob Redis l\u00e4uft:<br><code>systemctl status redis<\/code><br>Falls Redis nicht l\u00e4uft, starte es mit:<br><code>sudo systemctl start redis<\/code><br><br><strong>Redis f\u00fcr WordPress konfigurieren<\/strong><br>\u00d6ffne die Redis-Konfigurationsdatei mit einem Editor (z. B. nano):<br><code>nano \/etc\/redis\/redis.conf<\/code><br>Finde folgende Zeile:<br><code>supervised no<\/code><br>\u00c4ndere sie in:<br><code>supervised systemd<\/code><br>Speichere die Datei und starte Redis neu:<br><code>sudo systemctl restart redis<\/code><br><br><strong>Redis-Installation \u00fcberpr\u00fcfen<\/strong><br>F\u00fchre den folgenden Befehl aus, um sicherzustellen, dass Redis funktioniert:<br><code>redis-cli ping<\/code><br>Falls alles korrekt installiert ist, sollte die Ausgabe <code>PONG<\/code> sein.<br><br><strong>PHP Redis Erweiterung installieren<\/strong><br>Damit WordPress mit Redis arbeiten kann, ben\u00f6tigst du die PHP-Redis-Erweiterung. Installiere sie mit:<br><code>sudo apt install php-redis -y<\/code><br>Danach solltest du deinen Webserver neu starten:<br><code>systemctl restart apache2<\/code><br><br><strong>Redis-Cache-Plugin f\u00fcr WordPress installieren<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Melde dich im WordPress-Dashboard an.<\/li>\n\n\n\n<li>Gehe zu <strong>Plugins<\/strong> \u2192 <strong>Installieren<\/strong>.<\/li>\n\n\n\n<li>Suche nach <strong>Redis Object Cache<\/strong>.<\/li>\n\n\n\n<li>Installiere und aktiviere das Plugin.<\/li>\n\n\n\n<li>Gehe zu <strong>Einstellungen<\/strong> \u2192 <strong>Redis<\/strong> und klicke auf <strong>Verbinden<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Testen, ob Redis in WordPress l\u00e4uft<\/strong><br>\u00d6ffne dein Terminal und gib folgenden Befehl ein:<br><code>redis-cli monitor<\/code><br>Falls Redis aktiv ist, solltest du Anfragen sehen, wenn du deine Website aufrufst.<br><br><strong>Optional \u2013 Sicherheitskonfiguration<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Nur lokale Verbindungen erlauben:<br><\/strong>Stelle sicher, dass bind 127.0.0.1 in \/etc\/redis\/redis.conf gesetzt ist.<\/li>\n\n\n\n<li><strong>Passwortschutz aktivieren:<br><\/strong>\u00d6ffne \/etc\/redis\/redis.conf und setze ein Passwort:<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><code>requirepass DEIN_SICHERES_PASSWORT<\/code><br>Danach Redis neu starten:<br><code>systemctl restart redis<\/code><br>F\u00fchre den folgenden Befehl aus, um sicherzustellen, dass Redis funktioniert:<br><code>redis-cli -a DEIN_SICHERES_PASSWORT ping<\/code><br>Die Antwort sollte wieder ein <code>PONG<\/code> sein<br><br><strong>WordPress wp-config.php anpassen<\/strong><br>\u00d6ffne die wp-config.php aus dem Webrootverzeichnis und f\u00fcge folgende Zeilen unter <code>\/* Add any custom values between this line and the \"stop editing\" line. *\/<\/code> ein:<br><br><code>\/\/ adjust Redis host and port if necessary<br>define( 'WP_REDIS_HOST', '127.0.0.1' );<br>define( 'WP_REDIS_PORT', 6379 );<br>define( 'WP_REDIS_PASSWORD', 'DEIN_SICHERES_PASSWORT' );<br><br>\/\/ reasonable connection and read+write timeouts<br>define( 'WP_REDIS_TIMEOUT', 1 );<br>define( 'WP_REDIS_READ_TIMEOUT', 1 );<br>define('WP_REDIS_SCHEME', 'tcp');<br>define('WP_REDIS_MAXTTL', 3600);<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Zuletzt gepr\u00fcft und bearbeitet: <span class=\"last-modified-timestamp\">Jan. 31, 2025 @ 22:12<\/span><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>System auf den neusten Stand bringensudo apt update &amp;&amp; sudo apt upgrade -y Redis installierenInstalliere Redis mit folgendem Befehl:sudo apt install redis-server -yNach der Installation kannst du \u00fcberpr\u00fcfen, ob Redis l\u00e4uft:systemctl status redisFalls Redis nicht l\u00e4uft, starte es mit:sudo systemctl start redis Redis f\u00fcr WordPress konfigurieren\u00d6ffne die Redis-Konfigurationsdatei mit einem Editor (z. B. nano):nano \/etc\/redis\/redis.confFinde [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":60,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-901","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Redis Object Cache - kanuracer<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kanuracer.eu\/index.php\/linux\/debian\/wordpress\/redis-object-cache\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Redis Object Cache - kanuracer\" \/>\n<meta property=\"og:description\" content=\"System auf den neusten Stand bringensudo apt update &amp;&amp; sudo apt upgrade -y Redis installierenInstalliere Redis mit folgendem Befehl:sudo apt install redis-server -yNach der Installation kannst du \u00fcberpr\u00fcfen, ob Redis l\u00e4uft:systemctl status redisFalls Redis nicht l\u00e4uft, starte es mit:sudo systemctl start redis Redis f\u00fcr WordPress konfigurieren\u00d6ffne die Redis-Konfigurationsdatei mit einem Editor (z. B. nano):nano \/etc\/redis\/redis.confFinde [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kanuracer.eu\/index.php\/linux\/debian\/wordpress\/redis-object-cache\/\" \/>\n<meta property=\"og:site_name\" content=\"kanuracer\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-31T21:12:51+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data1\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kanuracer.eu\\\/index.php\\\/linux\\\/debian\\\/wordpress\\\/redis-object-cache\\\/\",\"url\":\"https:\\\/\\\/kanuracer.eu\\\/index.php\\\/linux\\\/debian\\\/wordpress\\\/redis-object-cache\\\/\",\"name\":\"Redis Object Cache - kanuracer\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kanuracer.eu\\\/#website\"},\"datePublished\":\"2025-01-31T21:02:49+00:00\",\"dateModified\":\"2025-01-31T21:12:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kanuracer.eu\\\/index.php\\\/linux\\\/debian\\\/wordpress\\\/redis-object-cache\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kanuracer.eu\\\/index.php\\\/linux\\\/debian\\\/wordpress\\\/redis-object-cache\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kanuracer.eu\\\/index.php\\\/linux\\\/debian\\\/wordpress\\\/redis-object-cache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/kanuracer.eu\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\\\/\\\/kanuracer.eu\\\/index.php\\\/linux\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Debian\",\"item\":\"https:\\\/\\\/kanuracer.eu\\\/index.php\\\/linux\\\/debian\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"WordPress\",\"item\":\"https:\\\/\\\/kanuracer.eu\\\/index.php\\\/linux\\\/debian\\\/wordpress\\\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Redis Object Cache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kanuracer.eu\\\/#website\",\"url\":\"https:\\\/\\\/kanuracer.eu\\\/\",\"name\":\"kanuracer\",\"description\":\"Games, IT &amp; More\",\"publisher\":{\"@id\":\"https:\\\/\\\/kanuracer.eu\\\/#\\\/schema\\\/person\\\/44cfc12e4d1a361d50c29f61cae0617d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kanuracer.eu\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/kanuracer.eu\\\/#\\\/schema\\\/person\\\/44cfc12e4d1a361d50c29f61cae0617d\",\"name\":\"kanuracer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/kanuracer.eu\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/Logo_White_800.png\",\"url\":\"https:\\\/\\\/kanuracer.eu\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/Logo_White_800.png\",\"contentUrl\":\"https:\\\/\\\/kanuracer.eu\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/Logo_White_800.png\",\"width\":800,\"height\":800,\"caption\":\"kanuracer\"},\"logo\":{\"@id\":\"https:\\\/\\\/kanuracer.eu\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/Logo_White_800.png\"},\"sameAs\":[\"https:\\\/\\\/kanuracer.eu\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Redis Object Cache - kanuracer","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kanuracer.eu\/index.php\/linux\/debian\/wordpress\/redis-object-cache\/","og_locale":"de_DE","og_type":"article","og_title":"Redis Object Cache - kanuracer","og_description":"System auf den neusten Stand bringensudo apt update &amp;&amp; sudo apt upgrade -y Redis installierenInstalliere Redis mit folgendem Befehl:sudo apt install redis-server -yNach der Installation kannst du \u00fcberpr\u00fcfen, ob Redis l\u00e4uft:systemctl status redisFalls Redis nicht l\u00e4uft, starte es mit:sudo systemctl start redis Redis f\u00fcr WordPress konfigurieren\u00d6ffne die Redis-Konfigurationsdatei mit einem Editor (z. B. nano):nano \/etc\/redis\/redis.confFinde [&hellip;]","og_url":"https:\/\/kanuracer.eu\/index.php\/linux\/debian\/wordpress\/redis-object-cache\/","og_site_name":"kanuracer","article_modified_time":"2025-01-31T21:12:51+00:00","twitter_card":"summary_large_image","twitter_misc":{"Gesch\u00e4tzte Lesezeit":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/kanuracer.eu\/index.php\/linux\/debian\/wordpress\/redis-object-cache\/","url":"https:\/\/kanuracer.eu\/index.php\/linux\/debian\/wordpress\/redis-object-cache\/","name":"Redis Object Cache - kanuracer","isPartOf":{"@id":"https:\/\/kanuracer.eu\/#website"},"datePublished":"2025-01-31T21:02:49+00:00","dateModified":"2025-01-31T21:12:51+00:00","breadcrumb":{"@id":"https:\/\/kanuracer.eu\/index.php\/linux\/debian\/wordpress\/redis-object-cache\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kanuracer.eu\/index.php\/linux\/debian\/wordpress\/redis-object-cache\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kanuracer.eu\/index.php\/linux\/debian\/wordpress\/redis-object-cache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/kanuracer.eu\/"},{"@type":"ListItem","position":2,"name":"Linux","item":"https:\/\/kanuracer.eu\/index.php\/linux\/"},{"@type":"ListItem","position":3,"name":"Debian","item":"https:\/\/kanuracer.eu\/index.php\/linux\/debian\/"},{"@type":"ListItem","position":4,"name":"WordPress","item":"https:\/\/kanuracer.eu\/index.php\/linux\/debian\/wordpress\/"},{"@type":"ListItem","position":5,"name":"Redis Object Cache"}]},{"@type":"WebSite","@id":"https:\/\/kanuracer.eu\/#website","url":"https:\/\/kanuracer.eu\/","name":"kanuracer","description":"Games, IT &amp; More","publisher":{"@id":"https:\/\/kanuracer.eu\/#\/schema\/person\/44cfc12e4d1a361d50c29f61cae0617d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kanuracer.eu\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":["Person","Organization"],"@id":"https:\/\/kanuracer.eu\/#\/schema\/person\/44cfc12e4d1a361d50c29f61cae0617d","name":"kanuracer","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/kanuracer.eu\/wp-content\/uploads\/2020\/08\/Logo_White_800.png","url":"https:\/\/kanuracer.eu\/wp-content\/uploads\/2020\/08\/Logo_White_800.png","contentUrl":"https:\/\/kanuracer.eu\/wp-content\/uploads\/2020\/08\/Logo_White_800.png","width":800,"height":800,"caption":"kanuracer"},"logo":{"@id":"https:\/\/kanuracer.eu\/wp-content\/uploads\/2020\/08\/Logo_White_800.png"},"sameAs":["https:\/\/kanuracer.eu"]}]}},"_links":{"self":[{"href":"https:\/\/kanuracer.eu\/index.php\/wp-json\/wp\/v2\/pages\/901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kanuracer.eu\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kanuracer.eu\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kanuracer.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kanuracer.eu\/index.php\/wp-json\/wp\/v2\/comments?post=901"}],"version-history":[{"count":5,"href":"https:\/\/kanuracer.eu\/index.php\/wp-json\/wp\/v2\/pages\/901\/revisions"}],"predecessor-version":[{"id":910,"href":"https:\/\/kanuracer.eu\/index.php\/wp-json\/wp\/v2\/pages\/901\/revisions\/910"}],"up":[{"embeddable":true,"href":"https:\/\/kanuracer.eu\/index.php\/wp-json\/wp\/v2\/pages\/60"}],"wp:attachment":[{"href":"https:\/\/kanuracer.eu\/index.php\/wp-json\/wp\/v2\/media?parent=901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}