标签:
//本实例是在 LAMP/LNMP 环境下实现 1. 编辑 php.ini 添加两行 -- 在php的安装包里找 php.ini-production 或 php.ini-recommand [root@ff php-5.6.13]# vim /usr/local/php/etc/php.ini //ADD session.save_handler = memcache session.save_path = "tcp://192.168.154.128:11211" //这里写自己的ip? 2. 编辑http.conf中对应的虚拟主机中添加 [root@ff ~]# vim /usr/local/apache2/conf/httpd.conf //ADD php_value session.save_handler"memcache" php_value session.save_path "tcp://192.168.154.128:11211" 3. 编辑 php-fpm.conf 对应的pool中添加 [root@ff ~]# vim /usr/local/php/etc/php-fpm.conf //ADD php_value[session.save_handler] = memcache php_value[session.save_path] = "tcp://192.168.154.128:11211"
标签:
原文地址:http://www.cnblogs.com/frankielf0921/p/5799153.html