title: MongoDB server is not running with replset
body: <p>I do a MongoDB homework and follow the steps, but I faced the problem " server is not running with replset"</p>
  
  <p>I do the step is :</p>
  
  <pre><code>`"start mongod --replSet m101 --logpath 1.log --dbpath \data\rs1 --port 27017 --smallfiles --oplogSize 64
  start mongod --replSet m101 --logpath 2.log --dbpath \data\rs2 --port 27018 --smallfiles --oplogSize 64
  start mongod --replSet m101 --logpath 3.log --dbpath \data\rs3 --port 27019 --smallfiles --oplogSize 64
  </code></pre>
  
  <p>Now connect to a mongo shell and make sure it comes up.</p>
  
  <pre><code>mongo --port 27017
  </code></pre>
  
  <p>Now you will create the replica set. Type the following commands into the mongo shell:</p>
  
  <pre><code>config = { _id: "m101", members:[`
            { _id : 0, host : "localhost:27017"},
            { _id : 1, host : "localhost:27018"},
            { _id : 2, host : "localhost:27019"} ]
  };
  rs.initiate(config);"
  </code></pre>
  
  <p>I do not know where is the problem, someone said the problem maybe is another mongod is running. But I have not any other mongod running in the same time.</p>
  
  <p>Thank you!</p>