«   2021/04   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  
04-16 17:02
Notice
Today
202
Total
1,418,505
관리 메뉴

변군이글루

[Redis] PHP redis 확장(Extension)을 설치하는 방법 본문

* 리눅스

[Redis] PHP redis 확장(Extension)을 설치하는 방법

변군 변군이글루 2021. 3. 16. 11:06

PHP redis 확장(Extension)을 설치하는 방법

redis 설치

$ yum -y install gcc gcc-c++ make jemalloc tcl


$ yum install redis

 

$ systemctl --now enable redis

 

$ redis-cli -h 127.0.0.1 -p 6379 ping

redis extension 모듈 설치

$ wget https://github.com/phpredis/phpredis/archive/develop.zip

$ unzip develop.zip

 

$ cd phpredis-develop
$ /usr/local/php/bin/phpize
$ ./configure --with-php-config=/usr/local/php/bin/php-config
$ make
$ make install
----------------------------------------------------------------------
Installing shared extensions: /usr/local/php/lib/php/extensions/debug-zts-20180731/

 

$ echo "extension=redis.so" >> /usr/local/apache2/conf/php.ini

 

$ /usr/local/php/bin/php -m | grep redis
$ /usr/local/php/bin/php -i | grep redis
$ /usr/local/php/bin/php -r "phpinfo();" | grep redis

 

https://github.com/phpredis/phpredis

 

phpredis/phpredis

A PHP extension for Redis. Contribute to phpredis/phpredis development by creating an account on GitHub.

github.com

 

 

0 Comments
댓글쓰기 폼