News Photo

How to install Redis on AWS machine with Ubuntu

  • cd /usr/local/bin
  • sudo wget http://download.redis.io/redis-stable.tar.gz
  • sudo tar xvzf redis-stable.tar.gz
  • cd redis-stable
  • make distclean
  • yum install gcc
  • sudo yum update
  • sudo yum install make
  • sudo make
  • sudo make test
  • sudo make install
  • sudo mkdir /etc/redis
  • sudo mkdir /var/redis
  • sudo cp utils/redis_init_script /etc/init.d/redis_6379
  • sudo cp redis.conf /etc/redis/6379.conf
  • sudo mkdir /var/redis/6379
  • Than edit 6379.conf:
  • daemonize yes
  • pidfile /var/run/redis_6379.pid
  • logfile /var/log/redis_6379.log
  • dir /var/redis/6379
  • To lauch redis:  sudo /etc/init.d/redis_6379 start

Share This News

Comment

Ready to find out more?