MongoDB:修订间差异
来自康健生活
| 第19行: | 第19行: | ||
修改mongodb的配置文件 让其监听所有外网 IP。 | 修改mongodb的配置文件 让其监听所有外网 IP。 | ||
{{shc|<syntaxhighlight lang="bash"> | {{shc|<syntaxhighlight lang="bash"> | ||
vi /etc/mongodb.conf</syntaxhighlight>}} | vi /etc/mongodb.conf</syntaxhighlight>|#}} | ||
{{hcdiff|head=mongodb.conf|output=<syntaxhighlight lang="bash" highlight="5"> | {{hcdiff|head=mongodb.conf|output=<syntaxhighlight lang="bash" highlight="5"> | ||
| 第38行: | 第38行: | ||
{{shc|<syntaxhighlight lang="bash"> | {{shc|<syntaxhighlight lang="bash"> | ||
systemctl restart mongod.service</syntaxhighlight>}} | systemctl restart mongod.service</syntaxhighlight>|#}} | ||
== 参考 == | == 参考 == | ||
* https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/ | * https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/ | ||