대상 OS

CentOS release 6.8 (Final)



1. 패키지 파일 복사


2. 방화벽 설정


3. 아파치 설정


4. php56 설치

yum list php56-*

yum 리스트에 뜨질않는다면 repository 변경

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

yum clean all

yum install php-pear php-devel gcc make

yum clean all

yum list php56*


기존에 깔았던 php제거

yum -y remove php php-*


yum install php56w-devel php56w-pecl php56w-common php56w-mysql php56w-pear php56w-mbstring php56w-opcache php56w



5. Predis 설치

yum install php-pear

pear channel-discover pear.nrk.io

pear install nrk/Predis


6. 레디스 클러스터 설정

./redis-server ../7000/redis.conf

./redis-server ../7001/redis.conf

./redis-server ../7002/redis.conf

./redis-trib.rb create 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002



+ Recent posts