从本地开发环境访问ElastiCache memcache实例 [英] Access ElastiCache memcache instance from local development environment
问题描述
有什么方法可以从本地开发环境访问缓存节点?虽然可以从EC2实例访问相同的缓存节点.
Is there any way to access cache nodes from local development environment? Although the same cache nodes are accessible from EC2 instance.
我正在使用带有C#的Enyim memcache客户端库.我发现很少有文章说这是不可能的,那应该是最好的方法.我是否需要在本地设置Memcache才能进行开发工作?
I'm using Enyim memcache client library with C#. I found few article saying this is not possible then what should be best approach. Should i need to setup memcache locally for development work?
推荐答案
创建Elastic Cache集群时,必须定义一个安全组.安全组是一组规则,这些规则定义了授权哪些IP地址连接到您的群集.
When you create your Elastic Cache cluster, you have to define a Security Group. A Security group is a set of rules that define what IP addresses are authorised to connect to your cluster.
如果要从本地计算机连接到缓存群集,请确保添加规则以授权本地IP地址连接到群集(请注意,如果您位于NATing网关或代理之后,则需要使用您的外部IP地址而不是内部IP地址
Should you want to connect to your cache cluster from your local machine, be sure to add a rule to authorise your local IP address to connect to the cluster (beware if you're behind a NATing gateway or a proxy, you need to use your external IP address and not your internal IP address)
有关详细信息,请访问: http://docs.aws.amazon.com/AmazonElastiCache/latest /UserGuide/GettingStarted.CreateCacheCluster.html
Details are available at : http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/GettingStarted.CreateCacheCluster.html
安全组的解释如下: http://docs.aws. amazon.com/AmazonVPC/latest/UserGuide/VPC_SecurityGroups.html
-Seb
这篇关于从本地开发环境访问ElastiCache memcache实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!