創建主: Mongod –port 28018 –dbpath /var/mongodb/master –master 創建從: Mongod –port 28019 –dbpath /var/mongodb/slave –slave –source localhost:28018