- 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.
推薦閱讀
- Word 2000、Excel 2000、PowerPoint 2000上機指導與練習
- Mastering Spark for Data Science
- 21天學通PHP
- Spark編程基礎(Scala版)
- 精通Windows Vista必讀
- 大學計算機應用基礎
- RPA(機器人流程自動化)快速入門:基于Blue Prism
- 從零開始學C++
- 從零開始學JavaScript
- Xilinx FPGA高級設計及應用
- Wireshark Revealed:Essential Skills for IT Professionals
- Oracle Blockchain Quick Start Guide
- 微計算機原理及應用
- 開源技術選型手冊
- 單片機系統設計與制作