I have apm-server installed on a ubuntu ec2 instance in AWS and it is sending output to another ubuntu ec2 instance running elasticsearch. I have the apm agent installed and working on an node.js app.
When I log into the apm-server instance and issue : apm-server -e it launches and connects properly. Kibana shows data from the node app and all looks great.
But if I close my ssh session to the apm-server instance, it appears that apm stops running and my node app fails do to connection refused when the apm agent tries to connect to the apm-server. As soon as i log in via ssh and run apm-server -e, all starts working again.
How do I have apm-server run persistently in the background?