- MongoDB 4 Quick Start Guide
- Doug Bierer
- 118字
- 2021-08-13 15:25:01
Configure and run MongoDB on RHEL/Fedora/CentOS
If you followed the procedure outlined previously, a configuration file /etc/mongod.conf will have been auto-generated by the installation script. By default, database files will be placed in /var/lib/mongodb and log files in /var/log/mongodb/mongod.log. Here is an example of the auto-generated file for MongoDB v4.0 on CentOS 7:

You are now able to perform these operations:
Operation Command
Start | stop | restart the server /bin/systemctl start|stop|restart mongod.service
Access MongoDB via the shell (covered later) mongo --host 127.0.0.1:27017
After starting the service, use the command /bin/systemctl status mongod.service to confirm the status of MongoDB:

推薦閱讀
- 網(wǎng)絡(luò)服務(wù)器架設(shè)(Windows Server+Linux Server)
- Apache Hive Essentials
- Python Algorithmic Trading Cookbook
- 四向穿梭式自動(dòng)化密集倉儲(chǔ)系統(tǒng)的設(shè)計(jì)與控制
- RPA(機(jī)器人流程自動(dòng)化)快速入門:基于Blue Prism
- 數(shù)據(jù)通信與計(jì)算機(jī)網(wǎng)絡(luò)
- Windows游戲程序設(shè)計(jì)基礎(chǔ)
- Troubleshooting OpenVPN
- Implementing AWS:Design,Build,and Manage your Infrastructure
- Azure PowerShell Quick Start Guide
- Extending Ansible
- 實(shí)戰(zhàn)Windows Azure
- 從祖先到算法:加速進(jìn)化的人類文化
- 網(wǎng)頁設(shè)計(jì)與制作
- Java求職寶典