- 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.
推薦閱讀
- 繪制進程圖:可視化D++語言(第1冊)
- Hands-On Intelligent Agents with OpenAI Gym
- 大數據戰爭:人工智能時代不能不說的事
- PowerShell 3.0 Advanced Administration Handbook
- 反饋系統:多學科視角(原書第2版)
- 工業機器人工程應用虛擬仿真教程:MotoSim EG-VRC
- VB語言程序設計
- Apache Spark Deep Learning Cookbook
- 四向穿梭式自動化密集倉儲系統的設計與控制
- 觸控顯示技術
- 網絡安全管理實踐
- Azure PowerShell Quick Start Guide
- Statistics for Data Science
- 基于企業網站的顧客感知服務質量評價理論模型與實證研究
- 計算機組成與操作系統