![]() Starting an application in production mode is as easy as:" $ pm2 start yourappname. It allows you to keep applications alive forever, to reload them without downtime and to facilitate common system admin tasks. For instance, programs that create a pseudo-terminal device such as xterm or screen will show as pts. disown will keep the process running after you log out. The instance I am using is Ubuntu Server 12.04.3 LTS. If you want to 'background' already running tasks, then Ctrl + Z then run bg to put your most recent suspended task to background, allowing it to continue running. Is there a way to keep the server running after logging out I am using Bitvise Tunnelier on Windows 7. To confirm that SSH connections arent being blocked by the firewall or TCP wrapper and that the sshd service is running and listening on port 22: 1. However, when I closed the SSH session (the instance is still running), I lost those two servers. An SSH session will be on a pseudo-terminal slave (pts) as shown in the TTY column, but not all pts connections are SSH sessions. Everything works when I SSHed to the instance and started those two servers. "PM2 is a production process manager for Node.js applications with a built-in load balancer. These commands just show all login sessions on a terminal device. The other answers may help for general putty but if it is node specific this is by far the best answer, as there is built in monitoring and the setup is simply a $ npm install pm2 -g ![]() I was originally searching for this question myself. ![]() If the process is a for nodejs, and it may be your intention since you originally posted this on stackoverflow. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |