@Centos 6버전, nginx + php5.3.3 버전
# cat /etc/redhat-release
CentOS release 6.x
@저장소 추가
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
@패키지 확인
# yum list | grep mem
php-pecl-memcache.x86_64 3.0.5-4.el6 @base
php-pecl-memcached.x86_64 1.0.0-1.el6 @epel
@패키지 설치
# yum -y install php-pecl-memcached.x86_64
# yum -y install php-pecl-memcache.x86_64
@ php+nginx 연동 후 상태확인
# netstat -nltp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 22016/php-fpm
tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 22570/memcached
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 21995/nginx
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1236/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1334/master
tcp 0 0 :::11211 :::* LISTEN 22570/memcached
tcp 0 0 :::22 :::* LISTEN 1236/sshd
tcp 0 0 ::1:25 :::* LISTEN 1334/master
# memcached-tool localhost status
Usage: memcached-tool <host[:port]> [mode]
memcached-tool 10.0.0.5:11211 display # shows slabs
memcached-tool 10.0.0.5:11211 # same. (default is display)
memcached-tool 10.0.0.5:11211 stats # shows general stats
memcached-tool 10.0.0.5:11211 dump # dumps keys and values
# php -m
[PHP Modules]
.
.
.
memcache
memcached
.
.
.
'PHP' 카테고리의 다른 글
php memcache 컴파일옵션 넣기 (0) | 2020.06.11 |
---|---|
PHP7.3 yum 설치시 mysqli 설치 (0) | 2019.08.23 |
php.ini 옵션 (0) | 2019.04.17 |
Centos 6.x, PHP 7.3 yum 설치 방법 (0) | 2019.04.17 |
php-fpm + nginx 소켓통신 설정방법 (0) | 2019.04.16 |