LoginSignup
0
0

More than 1 year has passed since last update.

Lightsail 上の WordPress に Redis Cache を導入する

Posted at

はじめに

Lightsail 上の WordPress に Redis Object Cache を導入する。

Object Cache を導入すると、サイト表示が早くなるらしい。

環境

動作環境は以下の通り。

Linux ip-■■■-■■■-■■■ 4.19.0-17-cloud-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
       ___ _ _                   _
      | _ |_) |_ _ _  __ _ _ __ (_)
      | _ \ |  _| ' \/ _` | '  \| |
      |___/_|\__|_|_|\__,_|_|_|_|_|

  *** Welcome to the Bitnami WordPress 5.6.1-1                     ***

手順

redis-server 導入

Lightsail のインスタンス画面から、ターミナルのアイコンをクリックして、Webuターミナルを起動する。

20210725-211018-Lightsail.jpg

redis-server をインストールする。

sudo apt update -y
sudo apt install redis-server -y

redis-server を起動する。

sudo systemctl start redis-server

Redis Object Cache プラグインの導入

プラグインの新規追加画面でRedis Object Cache を選択。

20210725-210833-プラグインを追加 ‹ Space Software Portal — WordPress.jpg

左下の【Enable Object Cache】ボタンをクリック。

20210725-210854-Redis Object Cache ‹ Space Software Portal — WordPress.jpg

【Status】が 【Connected】になったことを確認する。

20210725-210921-Redis Object Cache ‹ Space Software Portal — WordPress.jpg

参考サイト

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0