当前位置: 动力学知识库 > 问答 > 编程问答 >

mongodb - How to login / use the deployed service using JUJU

问题描述:

Deployed mongodb service using juju. It created a new virtual machine and deployed the mongodb service. How to access the newly created VM / Mongodb service. URL of the service is available from juju status command.

网友答案:

If you are running on on local Linux environment then the machine will be in separate container using LCX, but still you can login those container machine.

=> First check the status juju status

environment: local machines: "0": agent-state: started agent-version: 1.18.4.1 dns-name: localhost instance-id: localhost series: saucy "1": agent-state: started agent-version: 1.18.4.1 dns-name: 10.0.3.234 instance-id: juju-local-machine-1 series: precise hardware: arch=amd64 services: mongodb: charm: cs:trusty/mongodb-1 exposed: false relations: cluster: - mongodb units: mongodb/0: agent-state: started agent-version: 1.18.4.1 machine: "1"

this is example of juju status command in my machine,

=> From this statement, the mongodb is running on the container machine '2' then enter the following command juju ssh 2

Now you can easily login to the container machine

网友答案:

If you are running on on local Linux environment then the machine will be in separate container(with different subnet), so you will need to do the iptables forwarding for those machines. For AWS though things are different.

分享给朋友:
您可能感兴趣的文章:
随机阅读: