集群中的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

 

posted @ 2016-07-12 06:48  bass  阅读(435)  评论(0编辑  收藏  举报