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

Configure and run MongoDB on Ubuntu/Debian

If you followed the procedure outlined in the previous section, a configuration file /etc/mongod.conf will have been auto-generated by the installation script. By default, data files will be placed in /var/lib/mongodb and log files in /var/log/mongodb/mongod.log:

You are now able to perform these operations:

    
Operation           Command
Start | stop | restart the server           sudo service mongod start|stop|restart
Get the server status           sudo service mongod status
Access MongoDB via the shell (covered later)           mongo --host 127.0.0.1:27017
Here you can see the server started, along with its status:
MongoDB installation scripts now automatically bind MongoDB to localhost (IP address 127.0.0.1) for security reasons.
主站蜘蛛池模板: 威海市| 梅州市| 永定县| 阿图什市| 马边| 柳江县| 怀宁县| 体育| 湘乡市| 枞阳县| 吉木萨尔县| 景宁| 德格县| 台山市| 铁岭县| 宁海县| 曲麻莱县| 许昌市| 历史| 漳浦县| 荥经县| 唐河县| 秦安县| 溧水县| 石首市| 天峻县| 巩留县| 和龙市| 宕昌县| 新绛县| 东平县| 策勒县| 贵德县| 乌苏市| 凯里市| 万山特区| 瑞金市| 资中县| 仪陇县| 天台县| 阳原县|