0
我已完成此tutorial併成功部署了3節點副本集。我可以從其他主機連接到它,一切都很好。我的問題是,在教程中也指出在azure vms上設置mongodb副本 - 配置爲作爲服務運行
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
那麼如果其中一臺機器重新啓動會發生什麼?那個過程是死的嗎?我如何配置整個副本集作爲服務運行?
這些腳本在哪裏? –
我的不好,我的意思是服務腳本:sudo service mongodb start –
它會知道副本集 –