title: Issue while restarting the Tomcat server
body: <p>I am using <code>apache-tomcat-8.5.15</code> and starting(<code>startup.sh</code>) &amp; stopping(<code>shutdown.sh</code>) it using the shell scripts contained in its <code>bin/</code> directory. In my custom shell script file, when I write:</p>
  
  <pre><code>./shutdown.sh
  ./startup.sh
  </code></pre>
  
  <p>and run, it seems to work fine. But when I run with</p>
  
  <pre><code>./shutdown.sh &amp;&amp; ./startup.sh
  </code></pre>
  
  <p>it shows</p>
  
  <pre><code>java.net.BindException: Address already in use (Bind failed)
  </code></pre>
  
  <p>saying that the address is already bound.</p>
  
  <p>Why is this happening? How can I resolve this error?</p>
  
  <p>Or, is there a simple command that can restart tomcat?</p>