MongoDB/Install:修订间差异
来自康健生活
| 第47行: | 第47行: | ||
修改mongodb的配置文件 让其监听所有外网 IP。 | 修改mongodb的配置文件 让其监听所有外网 IP。 | ||
{{shc|<syntaxhighlight lang="bash"> | {{shc|<syntaxhighlight lang="bash"> | ||
vi /etc/ | vi /etc/mongod.conf</syntaxhighlight>|#}} | ||
{{hcdiff|head= | {{hcdiff|head=mongod.conf|output=<syntaxhighlight lang="bash" highlight="5"> | ||
... | ... | ||
# network interfaces | # network interfaces | ||
| 第67行: | 第67行: | ||
{{shc|<syntaxhighlight lang="bash"> | {{shc|<syntaxhighlight lang="bash"> | ||
systemctl restart mongod.service</syntaxhighlight>|#}} | systemctl restart mongod.service</syntaxhighlight>|#}} | ||
== 创建 == | |||