LoginSignup
0
0

[Ubuntu22.04+Redis7+php8]phpredisをインストール

Last updated at Posted at 2024-05-01

環境

  • さくらVPS
  • Ubuntu(22.04)
  • nginx(1.26.0)
  • Redis(7.2.4)
  • php(8.3.6)

手順

phpredis は git リポジトリ経由でインストールする

phpredis のインストールには phpize が必要で、phpize のインストールは php-dev という拡張パッケージをインストールすればよい

sudo apt -y install php8.3-dev

phpredis をインストール

git clone https://github.com/phpredis/phpredis.git
cd phpredis
phpize
./configure --enable-redis-igbinary
sudo make && sudo make install

php の redis 拡張モジュールを追加

sudo apt -y install php8.3-redis
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