juliashine 2020-06-16
参数的解释我在视频课上跟大家说一下。![[AWS][Nosql] Elasticache for Redis 动手实验101 [AWS][Nosql] Elasticache for Redis 动手实验101](https://cdn.ancii.com/article/image/v1/sw/wV/kP/PkwwVsGDmjDG9swnOi7SkjVAsMQAarn73E9S3mmSmcBLlTIsYw2YKe5YwIj5qyT5Jewd03KBL1VBe9sSVEO6rA.png)
![[AWS][Nosql] Elasticache for Redis 动手实验101 [AWS][Nosql] Elasticache for Redis 动手实验101](https://cdn.ancii.com/article/image/v1/sw/wV/kP/PkwwVsGDmjDG9swnOi7SkjVAsMQAarn73E9S3mmSmcBLlTIsYw2YKe5YwIj5qyT5DQb1uRDbFfAY3HnDpNHJvg.png)
创建完成后是下面这个状态:
![[AWS][Nosql] Elasticache for Redis 动手实验101 [AWS][Nosql] Elasticache for Redis 动手实验101](https://cdn.ancii.com/article/image/v1/sw/wV/kP/PkwwVsGDmjDG9swnOi7SkjVAsMQAarn73E9S3mmSmcBLlTIsYw2YKe5YwIj5qyT5sf2bhHGDGdAUQDehy8B_ow.png)
mycache.mdylbb.0001.usw2.cache.amazonaws.com:6379
![[AWS][Nosql] Elasticache for Redis 动手实验101 [AWS][Nosql] Elasticache for Redis 动手实验101](https://cdn.ancii.com/article/image/v1/sw/wV/kP/PkwwVsGDmjDG9swnOi7SkjVAsMQAarn73E9S3mmSmcBLlTIsYw2YKe5YwIj5qyT5uAaEM8iT8q2rhlW4tYmJIA.png)
创建EC2已经在前面的章节讲过很多次了,此处省略…
创建跳板机EC2的时候注意:
sudo yum install -y gcc
wget http://download.redis.io/releases/redis-3.0.2.tar.gz
tar xvzf redis-3.0.2.tar.gz
cd redis-3.0.2
make
src/redis-cli -c -h mycache.fqvxin.0001.cnn1.cache.amazonaws.com.cn -p 6379
set a “hello"
get a
get b
set b "Good-bye" EX 5 ##b的缓存失效时间5s
quit
详细视频教程参考:
https://edu.51cto.com/center/course/lesson/index?id=558302