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

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.
主站蜘蛛池模板: 砚山县| 开鲁县| 彭阳县| 台南县| 邛崃市| 嘉义市| 武夷山市| 桃园县| 称多县| 汝城县| 通山县| 安阳市| 淳化县| 永年县| 丽江市| 麻阳| 兴文县| 三明市| 吴忠市| 西青区| 太保市| 石首市| 广灵县| 华阴市| 金门县| 绍兴县| 安达市| 大名县| 广平县| 鄂托克前旗| 勃利县| 新源县| 宣威市| 新晃| 颍上县| 哈巴河县| 扶余县| 思南县| 额敏县| 曲靖市| 元阳县|