集群中的session共享存储 实现会话保持
每组web服务器端做一下调整:
[root@web03 memcache-2.2.6]# egrep "(session.save_handler|session.save_path)" /etc/php.ini session.save_handler = memcache ; session.save_path = "N;/path" ; session.save_path = "N;MODE;/path" session.save_path = "tcp://192.168.1.29:11211" ; (see session.save_path above), then garbage collection does *not*
[root@web03 memcache-2.2.6]# /etc/init.d/php-fpm restart Gracefully shutting down php-fpm . done Starting php-fpm done
联系方式QQ:326528263 EMAIL:clnking@163.com 网名:bass 分享技术 突破难点 创新思维