- MongoDB 4 Quick Start Guide
- Doug Bierer
- 131字
- 2021-08-13 15:25:01
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.
推薦閱讀
- 三菱FX3U/5U PLC從入門到精通
- Go Machine Learning Projects
- 手把手教你學(xué)AutoCAD 2010
- 腦動力:PHP函數(shù)速查效率手冊
- 數(shù)據(jù)運營之路:掘金數(shù)據(jù)化時代
- Matplotlib 3.0 Cookbook
- 自主研拋機器人技術(shù)
- ESP8266 Home Automation Projects
- JavaScript典型應(yīng)用與最佳實踐
- Linux系統(tǒng)管理員工具集
- 機器人制作入門(第4版)
- Deep Learning Essentials
- Access 2007數(shù)據(jù)庫入門與實例應(yīng)用金典
- PyTorch深度學(xué)習(xí)
- Flash CS5二維動畫設(shè)計與制作