Amazon EC2 NodeJS server stops itself after 2 days even after using sudo nohup
<p>I have my app running on <a href="http://talkwithstranger.com/" rel="nofollow noreferrer">http://talkwithstranger.com/</a> and I have deployed it on AWS EC2. I use this command</p>

<pre><code>sudo nohup node index.js &amp;
</code></pre>

<p>To continue running my Node JS server even if I close my terminal and exit my SSH.</p>

<p>However, after 2 days everytime I wake up and I find out that the node server itself stops automatically. I checked the running processes by using</p>

<pre><code>ps -ef
</code></pre>

<p>and my node script is not there. </p>

<p>Google Chrome say site DNS not found, because NodeJS Express is not running of course to serve my html file, but why it stops itself?</p>

<p>What is causing this unexpected shutdown of my server after every 2 days? I have to manually run <code>nohup</code> again to run it again.</p>

<p>Does nohup has a time to expire or something ?</p>