我已经完成了本教程并成功部署了一个 3 节点副本集。我可以从其他主机连接到它,一切都很好。我的问题是在教程中它指出
Start MongoDB
Once the configuration files have been edited, start the database process manual:mongod on each instance by:
Log on onto the instance
Run the following command to start the process:
mongod --config /etc/mongod.conf
This should start the manual:mongod process
对我来说,这似乎副本集作为用户进程运行,而不是像命令中那样作为系统服务运行
sudo service mongodb start
那么如果其中一台机器重新启动会发生什么?这个过程死了吗?如何将整个副本集配置为作为服务运行?