官术网_书友最值得收藏!

How it works...

By default, the mongod daemon binds to all interfaces on TCP port 27017. By passing the IP address with the --bind_ip parameter, we instructed mongod daemon to listen only on this socket. Next we passed the --port parameter along with --bind_ip to instruct the mongod daemon to listen to a particular port and IP. Using a non-standard port is a common practice when one wishes to run multiple instances of mongod daemon (along with a different --dbpath) or wish to add a little touch security by obscurity. Either way, we will be using this practice in our later recipes to test shards and replica sets setups running on a single server.

主站蜘蛛池模板: 杂多县| 西吉县| 米泉市| 杂多县| 瓮安县| 阆中市| 常德市| 宁海县| 潢川县| 文登市| 浦东新区| 龙江县| 沭阳县| 灵石县| 紫云| 灵台县| 大余县| 金坛市| 南宁市| 哈尔滨市| 阿合奇县| 兴文县| 仙桃市| 徐水县| 洱源县| 苍南县| 巫溪县| 嘉义县| 山阴县| 南部县| 伊宁市| 威海市| 布拖县| 文水县| 怀来县| 漳平市| 宁远县| 延吉市| 剑河县| 峨山| 临潭县|