install redis on aws micro instance

2019-03-10 02:07发布

I need to install redis in amazon cloud. I need it as a part of my npm module kue (deployment). Can anyone link me step by step tutorial or explain how to do it, considering the fact that I'm not good to bad with linux and administration.

3条回答
闹够了就滚
2楼-- · 2019-03-10 02:40

Rather than spin up an EC2 instance and install/manage redis there, you could create an Elasticache instance running redis and let AWS manage it all for you.

If you really do want to run your own redis server then you'll want to launch an EC2 instance and then manually install redis onto it. The AWS and redis documentation that I've linked to both provide step by step instructions.

查看更多
Juvenile、少年°
3楼-- · 2019-03-10 02:45

If you enable the Extra Packages for Enterprise Linux (EPEL) repository that's present on Amazon Linux, you can install with yum.

sudo yum-config-manager --enable epel
sudo yum install redis
# Start redis server
sudo redis-server /etc/redis.conf
查看更多
Viruses.
4楼-- · 2019-03-10 02:56

This worked for me on my "Amazon Linux 2" OS (based on RHEL/CENTOS 7)

wget -O /tmp/epel.rpm –nv https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install -y /tmp/epel.rpm
sudo yum update -y
sudo yum install redis -y

After installation completes, start redis-server by typing this command

redis-server
查看更多
登录 后发表回答