When attempting to initialize my replica set, the primary node has a specific domain: port matching. what I want is:
but what I receive is:
This is the command I use to start the mongo instance:
sudo mongod –port 27022 –dbpath / db / config / data –configsvr –replSet config
That's what I use to access the mongo instance:
mongo –port 27022
I tried modifying my host file to add the domain name to the default domain of 127.0.0.1, but it did not work.
127.0.0.1 localhost 127.0.0.1 vagrant-ubuntu-trusty-64 # The following lines are desirable for IPv6-compatible hosts :: 1 ip6-localhost ip6-loopback fe00 :: 0 ip6-localnet ff00 :: 0 ip6-mcastprefix ff02 :: 1 ip6-allnodes ff02 :: 2 ip6-allrouters ff02 :: 3 ip6-allhosts
How can I get the specific torque "vagrant-ubuntu-trusty-64: 27022" when I initialize the mongo instance?