MongoDB 常用启动参数(Mongodb common startup parameters)

每日一句

Once you choose your way of life, be brave to stick it out and never return.
生活的道路一旦选定,就要勇敢地走到底,绝不回头

概述

常用参数如下

mongod.exe
参数 描述
–bind_ip 绑定服务IP,若绑定127.0.0.1,则只能本机访问,不指定默认本地所有IP
–logpath 定MongoDB日志文件,注意是指定文件不是目录
–logappend 使用追加的方式写日志
–dbpath 指定数据库路径
–port 指定服务端口号,默认端口27017
–serviceName 指定服务名称
–serviceDisplayName 指定服务名称,有多个mongodb服务时执行。
–install 指定作为一个Windows服务安装。

美文佳句

把握分寸,是一种难得的智慧。那些能看到别人优点的人,往往懂得把别人放在心上,时刻照顾别人的感受。他们会在一言一语中放低自己的姿态,让别人感受到关心和尊重。

人与人之间,不过一场以心换心。学会欣赏别人,别人才会欣赏你。对他人适时地赞美,不需要多么高超的说话技巧,比技巧更重要的是真诚。真心实意、以诚相待,永远是人际交往中最基本的准则。

————————

One sentence a day

Once you choose your way of life, be brave to stick it out and never return.
Once you choose the way of life, you should bravely go to the end and never look back

summary

Common parameters are as follows

mongod.exe
参数 描述
–bind_ip 绑定服务IP,若绑定127.0.0.1,则只能本机访问,不指定默认本地所有IP
–logpath 定MongoDB日志文件,注意是指定文件不是目录
–logappend 使用追加的方式写日志
–dbpath 指定数据库路径
–port 指定服务端口号,默认端口27017
–serviceName 指定服务名称
–serviceDisplayName 指定服务名称,有多个mongodb服务时执行。
–install 指定作为一个Windows服务安装。

Beautiful sentences

It is a rare wisdom to grasp discretion. Those who can see the advantages of others often know how to keep others in mind and take care of others’ feelings all the time. They will lower their attitude in every word and let others feel care and respect.

Between people, but a heart for heart. Learn to appreciate others, others will appreciate you. It doesn’t need much superb speaking skills to praise others in time. What’s more important than skills is sincerity. Sincerity and honesty are always the most basic principles in interpersonal communication.