您的位置:首页 > 其它

集群中的session共享存储 实现会话保持

2016-07-12 06:48 573 查看
每组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


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: