vi /usr/local/php/lib/php.ini
session.save_handler = “memcache”memcache.hash_strategy = “consistent”session.save_path = “tcp://127.0.0.1:13000?weight=10,tcp://127.0.0.1:12000″说明:第一行,session的储存方式是memcache;第二行,memcache的hash算法是consistent;第三行,session储存的地位;