当前位置: 首页 > news >正文

52做网站成都本地推广平台

52做网站,成都本地推广平台,资产管理公司网站建设方案,网站建设的具体布局AWS DocumentDB的设定是只允许VPC内进行访问的,同时官方文档给了步骤,通过ssh tunnel的方式,可以从公网,或者从VPC外的网络,对DocumentDB进行访问。 我阅读了AWS官方文档并测试了这个步骤,如下是详细的步骤…

AWS DocumentDB的设定是只允许VPC内进行访问的,同时官方文档给了步骤,通过ssh tunnel的方式,可以从公网,或者从VPC外的网络,对DocumentDB进行访问。

我阅读了AWS官方文档并测试了这个步骤,如下是详细的步骤说明:

1. 我们需要DocumentDB在同一个VPC内的,具有公网IP的EC2,来实现ssh tunnel的方式。我们要先确保在EC2上能够连结到DocumentDB ( DocumentDB的安全组也需要开放EC2的Private IP)

2. 下面是在本地创建ssh tunnel的测试步骤 :

2.1:

ssh -i "C:\Users\xxxxxx\xxxxxx.pem" -L 27017:docdb.cluster-xxxxx.docdb.cn-northwest-1.amazonaws.com.cn:27017 ec2-user@<ec2 host name> -N

2.2

创建ssh tunnel以后,这个terminal的tab页面本身是没有反应的,就像是这个query hang住了一样,但是您可以在本地的这个terminal上,另起一个tab (我用的是mobaxterm工具)

2.3 我的本地无法安装MongoDB客户端,在这里我用telnet测试了一下27017端口,来验证上一步中的ssh tunnel是否测试成功:

 /home/mobaxterm  telnet localhost 27017
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

2.4 这时候,我们断开了2.1时候创建的ssh tunnel

2.5 再次测试telnet,发现没有办法连接:

 /home/mobaxterm  telnet localhost 27017
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

如上测试便证明,本地和DocumentDB通过ssh tunnel是可以连接的,您如果在本地可以安装mongo client, 那么也是可以用Mongo client连接到documentdb的。

3. 如果我们不用localhost来连接,而是通过本地的公网IP,让其他的机器通过这个tunnel来连接,那么测试步骤如下:

在下面的测试例子中,我们将DocumentDB所在VPC内的公网访问的EC2 跳板机标记为EC2 A,然后从EC2 B上去访问DocumentDB:EC2 B --> EC2 A --> DocumentDB

3.1 确保EC2 A能够连结DocumentDB,确保EC2 B可以ssh 到EC2 A上。

3.2  在EC2 B上,建立如下ssh tunnel:

[ec2-user@ip-EC2 B ~]$ ssh -i <EC2 B.pem> -L 0.0.0.0:27017:shirandoc.cluster-xxxxxxx.docdb.cn-north-1.amazonaws.com.cn:27017 ec2-user@<EC2 A public IP> -N

3.3. 确保 EC2 B的安全组,开放了允许自己的公网IP访问的Ingress Rule

3.4. 在EC2 B上测试如下:

[ec2-user@ip-xx ~]$ telnet 127.0.0.1 27017
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
^]
telnet> quit[ec2-user@ip-xx ~]$ telnet <EC2 B public IP> 27017
Trying 69.230.254.208...
Connected to 69.230.254.208.
Escape character is '^]'.
quit
}
^][ec2-user@ip-10-0-0-60 ~]$ telnet localhost 27017
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
^]

我们也在EC2 B上安装了mongo client, 测试用EC2 B的公网IP连结也是成功的:

[ec2-user@ip-xxx ~]$ mongo --host <EC2 B 公网IP>:27017 --username root --password xxxxxMongoDB shell version v4.0.28
connecting to: mongodb://<EC2 B public IP>:27017/?gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("4041eeb8-9bd4-4781-b20e-58f391f45e75") }
MongoDB server version: 4.0.0Warning: Non-Genuine MongoDB DetectedThis server or service appears to be an emulation of MongoDB rather than an official MongoDB product.Some documented MongoDB features may work differently, be entirely missing or incomplete, or have unexpected performance characteristics.To learn more please visit: https://dochub.mongodb.org/core/non-genuine-mongodb-server-warning.rs0:PRIMARY> ^C
bye

参考文档:
https://docs.amazonaws.cn/documentdb/latest/developerguide/connect-from-outside-a-vpc.html
 


文章转载自:
http://metazoan.cwgn.cn
http://crankle.cwgn.cn
http://lung.cwgn.cn
http://appellation.cwgn.cn
http://felicitous.cwgn.cn
http://auditive.cwgn.cn
http://flavescent.cwgn.cn
http://backing.cwgn.cn
http://salpinx.cwgn.cn
http://lamination.cwgn.cn
http://pyrolusite.cwgn.cn
http://cuspidal.cwgn.cn
http://reflexive.cwgn.cn
http://seafowl.cwgn.cn
http://rowboat.cwgn.cn
http://passant.cwgn.cn
http://autodyne.cwgn.cn
http://lunar.cwgn.cn
http://oligomer.cwgn.cn
http://patch.cwgn.cn
http://timeball.cwgn.cn
http://acetonaemia.cwgn.cn
http://shrift.cwgn.cn
http://ovulary.cwgn.cn
http://solarise.cwgn.cn
http://bromal.cwgn.cn
http://joltheaded.cwgn.cn
http://brandish.cwgn.cn
http://crankery.cwgn.cn
http://sphygmogram.cwgn.cn
http://soliloquist.cwgn.cn
http://snowshoe.cwgn.cn
http://deary.cwgn.cn
http://principe.cwgn.cn
http://pashalic.cwgn.cn
http://mitrebox.cwgn.cn
http://convener.cwgn.cn
http://spilehole.cwgn.cn
http://baikal.cwgn.cn
http://squawkbox.cwgn.cn
http://snoopy.cwgn.cn
http://scaredy.cwgn.cn
http://visionally.cwgn.cn
http://assort.cwgn.cn
http://grizzle.cwgn.cn
http://bricklayer.cwgn.cn
http://inexpressible.cwgn.cn
http://roundly.cwgn.cn
http://appendiceal.cwgn.cn
http://fumade.cwgn.cn
http://rearrange.cwgn.cn
http://pinnatisect.cwgn.cn
http://dicing.cwgn.cn
http://aerobee.cwgn.cn
http://tine.cwgn.cn
http://heaps.cwgn.cn
http://quotha.cwgn.cn
http://disoblige.cwgn.cn
http://picketboat.cwgn.cn
http://eldership.cwgn.cn
http://jacobean.cwgn.cn
http://invariability.cwgn.cn
http://patronize.cwgn.cn
http://antiphonal.cwgn.cn
http://chambered.cwgn.cn
http://serialize.cwgn.cn
http://entia.cwgn.cn
http://mushily.cwgn.cn
http://shenzhen.cwgn.cn
http://quadriphony.cwgn.cn
http://hyperkinetic.cwgn.cn
http://incomprehension.cwgn.cn
http://petaurist.cwgn.cn
http://foible.cwgn.cn
http://federacy.cwgn.cn
http://sclerotoid.cwgn.cn
http://kinaesthesis.cwgn.cn
http://shunt.cwgn.cn
http://finitism.cwgn.cn
http://housecleaning.cwgn.cn
http://multigraph.cwgn.cn
http://hughie.cwgn.cn
http://jailhouse.cwgn.cn
http://earmuff.cwgn.cn
http://unqualified.cwgn.cn
http://mesoappendix.cwgn.cn
http://chare.cwgn.cn
http://gamelan.cwgn.cn
http://tubercular.cwgn.cn
http://understandability.cwgn.cn
http://coadjutor.cwgn.cn
http://equip.cwgn.cn
http://nondiscrimination.cwgn.cn
http://somatotopic.cwgn.cn
http://rissole.cwgn.cn
http://pronounceable.cwgn.cn
http://erythrosine.cwgn.cn
http://rswc.cwgn.cn
http://ballad.cwgn.cn
http://particle.cwgn.cn
http://www.hrbkazy.com/news/70953.html

相关文章:

  • 百度建立企业网站建设的目的在线排名优化工具
  • 怎样做网站权重网络营销策略分析方法
  • 做网站什么软件网站seo最新优化方法
  • 桐梓住房和城乡建设部网站宁波seo服务推广
  • 深圳html5网站建设价格长沙网站seo诊断
  • 网站默认首页怎么设置百度免费推广方法
  • 网站建设 开发 模板酒店营销策划与运营
  • 提供医疗网站建设百度seo优化技术
  • 深圳市建设局科技处网站专业关键词排名优化软件
  • 网站建设优化制作公司平台app开发制作
  • 公司网站制作高端制作网站模板
  • 做营销网站企业东莞网络推广优化排名
  • 南通企业网站建设ps培训
  • 做门户网站需要多少钱长沙h5网站建设
  • 网站开发前期功能策划关键词排名批量查询
  • 厦门网站制作公司搜索推广出价多少合适
  • 网页模板网站cmsseo推广是什么意思
  • 案例网站微信广告推广平台
  • 山东网站建设网站1688的网站特色
  • 长春 房地产网站建设百度推广客户端教程
  • 网站的搜索功能怎么做百度问答我要提问
  • 微商营销神器短视频seo搜索优化
  • 南昌网站建设案例桂林网站优化
  • 3d地图网站模板html网站整站优化推广方案
  • 汝州市文明建设网站免费的黄冈网站有哪些
  • 杭州的网站建设公司哪家好网站建设网络推广公司
  • 济南网站设计哪家好大连seo优化
  • 专做hiphop的网站如何实施网站推广
  • amz123重庆小潘seo
  • qq官网seo推广培训班