php用redis做session共享

yum install -y php-redis;

然后/etc/php.ini里改:

session.save_handler = redis
session.save_path = "tcp://127.0.0.1:6379"

service httpd restart

参考文献:

https://blog.csdn.net/junqing124/article/details/54417250

你可能感兴趣的:(php,redis,session,共享)