0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Amazon Linux 2 にphp-pecl-redis入れる

Posted at

LaravelにてRedisを使う必要があり、phpredisかpredisいれてねとのことだったのでその時の備忘録

Laravel6.xのドキュメントにあるように、predisはもうLaravelに含めないようにしますとのことだったので、phpredisを入れる方向で検討

remiを使えとの記事が多かったがよくよく見ればamazon-linux-extrasにすでにあるようなのでそちらから入れた。

AmazonLinux2
sudo yum install php-pecl-redis 
sudo systemctl restart php-fpm

うまくいかない場合にはお使いのPHPのバージョンのrepoが有効化されているか確認して下さい。

0
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?