title: How to connect to Vault server
body: <p>I wanted to give a try to <a href="https://www.vaultproject.io/" rel="nofollow">vault</a>, so I configured <code>VAULT_ADDR</code> as:</p>
  
  <pre><code>$ echo $VAULT_ADDR 
  http://127.0.0.1:8200
  </code></pre>
  
  <p>then I started vault in dev mode (<code>vault server -dev</code>) and everything was ok, I was able to connect to the server.</p>
  
  <p>Then I wrote a really simple config file:</p>
  
  <pre><code>$ cat vault.config 
  backend "inmem"
  
  listener "tcp" {
    address = "127.0.0.1:8200"
    tls_disable = 1
  }
  
  disable_mlock = true
  </code></pre>
  
  <p>and I restarted the server with <code>vault server -config=vault.config</code>, but then when I connect to the server, I get:</p>
  
  <pre><code>$ vault status
  Error checking seal status: Get http://127.0.0.1:8200/v1/sys/seal-status: dial tcp 127.0.0.1:8200: getsockopt: connection refused
  </code></pre>
  
  <p>Is there something wrong in my config file?</p>