Migrate Redis server

Redis is the most popular memory database system, enhance your site just like fly in sky by using it. Redis is easy to config, and record something to someone need it.

Install

  • install Redis in new server
    apt install redis-server php-redis

  • install phpRedisAdmin in new server

    • open GitHub site
    • clone latest to /usr/share/phpredisadmin

Config

  • modify Redis config
    vi /etc/redis/redis.conf

  • modify Nginx config

    • install apache2 utils, generate htpasswd

      1
      2
      apt install apache2-utils
      htpasswd -c /etc/phpreadmin/htpasswd admin
    • encrypt phpRedisAdmin website login

      1
      2
      3
      4
      5
      location / {
      auth_basic "Dengcb Redis Admin";
      auth_basic_user_file /etc/phpreadmin/htpasswd;
      try_files $uri $uri/ /index.php?$args;
      }
  • modify php config

    1
    2
    3
    [Session]
    session.save_handler = redis
    session.save_path = "unix:///var/run/redis/redis-server.sock?persistent=1&weight=1"
Migrate Redmine and Gitlab Migrate MySQL server

Comments

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×