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

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.
主站蜘蛛池模板: 辽中县| 上杭县| 专栏| 民勤县| 保定市| 长宁区| 内乡县| 松潘县| 汉中市| 昌宁县| 定安县| 全南县| 侯马市| 昌平区| 贵德县| 双桥区| 吉首市| 泰州市| 红桥区| 开封县| 林州市| 莫力| 邛崃市| 德清县| 循化| 夏津县| 德昌县| 陆丰市| 石景山区| 陇南市| 武宁县| 漳州市| 望谟县| 土默特右旗| 武胜县| 沙河市| 辉南县| 海伦市| 开平市| 成安县| 南陵县|