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

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.

主站蜘蛛池模板: 方山县| 娄底市| 冕宁县| 武鸣县| 巩义市| 渭南市| 饶阳县| 嘉峪关市| 宁强县| 汉源县| 万山特区| 宣恩县| 黄浦区| 依兰县| 南溪县| 湖南省| 嘉善县| 昆山市| 措勤县| 庆元县| 万州区| 金乡县| 娱乐| 阳江市| 扎兰屯市| 疏勒县| 罗山县| 台南县| 海林市| 淮南市| 渝北区| 盐亭县| 东台市| 青阳县| 宜都市| 温泉县| 屏边| 永顺县| 郧西县| 瓮安县| 泽库县|