title: Cannot start mongodb after editing .conf file to add new Ip to bindIp
body: <p>I have installed mongodb 2.6 in a ubuntu 14.02 server. To allow remote access I added the static Ip to <code>/etc/mongod.conf</code> </p>
  
  <pre><code>bindIp= 127.0.0.1, 192.168.0.150
  </code></pre>
  
  <p>I edited the file as root user using sudo command.</p>
  
  <p>After this mongodb is not starting as service on boot up. But I can start it using following command :</p>
  
  <pre><code>sudo mongod --dbpath /var/lib/mongodb
  </code></pre>
  
  <p>As I understand I made some permission problem while editing conf file. I tried a few solutions including changing owner of /etc folder to mongodb as well as current system user. But they are not working. I am a very new user to linux environment. Any help would be much appreciated.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Result of <code>ls -l /etc/mongod.conf</code>:</p>
  
  <pre><code>-rw-r--r-- 1 root root 1716 Aug 14 23:32 /etc/mongod.conf
  </code></pre>
  
  <p>Also the result for the command: </p>
  
  <pre><code>sudo service mongod start
  </code></pre>
  
  <p>is:</p>
  
  <pre><code>mongod start/running, process 2660. 
  </code></pre>
  
  <p>But if I try to open mongo client with mongo, I get</p>
  
  <pre><code>errno:111 connection refused, connection attempt failed at src/mongo/shell/mongo.js:146
  </code></pre>