sasha2002 Blog's

Just another blog from admin's

Установка Redis server для Debian —

1. Устанавливаем modman :
bash < <(wget -O – https://raw.github.com/colinmollenhour/modman/master/modman-installer)
2. С помощью modman устанавливаем модуль для Magentoo :
cd /your/home/of/app/
/root/bin/modman init
/root/bin/modman clone git://github.com/colinmollenhour/Cm_RedisSession.git


3. Настраиваем app/etc/local.xml :
redis_etc_local_xml
4. Чистим кэш и тестируем настройки :
php .modman/Cm_RedisSession/migrateSessions.php –test
5. Меняем в app/etc/local.xml :
с
<session_save> на
<session_save>db
6. Мигрируем уже созданные сессии в redis :
cd /var/www # Magento installation root
touch maintenance.flag # Enter maintenance mode
sleep 2 # Allow any running processes to complete
# This will copy sessions into redis and clear the config cache so local.xml changes will take effect
sudo php .modman/Cm_RedisSession/migrateSessions.php -y
rm maintenance.flag # All done, exit maintenance mode


Categorised as: Linux



Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.