两台服务器: master (192.168.0.196) 和 slave (192.168.31.102)分别按照之前介绍的步骤安装好redis并启动master 配置文件不用动slave 配置文件上加一行 slaveof 192.168.31.105 6379masterauth passwd //如果主上设置了密码,要加这行分别启动
先安装php的memcache扩展# wget http://www.lishiming.net/data/p_w_upload/forum/memcache-2.2.3.tgz# tar zxf memcache-2.2.3.tgz # cd memcache-2.2.3# /usr/local/php/bin/phpize# ./configure --with-php-
1 、连接memcached[root@localhost ~]# telnet 127.0.0.1 11211Trying 127.0.0.1...Connected to 127.0.0.1.Escape character is '^]'.2、退出[root@localhost ~]# telnet 127.0.0.1 11211Trying 127.0.0.1...Connected to
ssh://root:****@192.168.0.195:22 centos 6.7 x86_641、安装扩展源yum install -y epel-release[root@localhost ~]# wget www.lishiming.net/data/p_w_upload/forum/epel-release-5-4_32.noarch.rpm[root@loca
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号