This article is based on Ubuntu 14. 04
Use SSH to connect to the remote server, start the service, after exiting SSH, the service is terminated, using screen can solve the problem.
1. Install screen
Apt-get Install screen
2, after the installation is complete, enter the screen command, according to the prompt to enter the new interface by space
3, like before starting the Meteor project, enter the directory, start the Meteor project
Cd/home/meteor/hello
Meteor
4, after the completion of access to the project http://ip:3000, success. Close the SSH window, continue access, and still succeed.
5. Enter SSH again to view the services that have been opened
Screen-ls
After execution, the running sub-interface is listed, and the sub-interface running by the service is viewed
Screen-ls sub-Interface code, enter the console of the running sub-interface
6, will also encounter the failure to enter the sub-interface, the following error is indicated
There is no screen to be resumed matching 6556
7, Input Command reply
Screen-d 6556
8, again into the sub-interface, because there is only one sub-interface, you can enter screen-r directly into
9, after entering the sub-interface, the command to return to the main interface is ctrl+a,d first input CTRL + A and then enter D
Screen implementation to continue running code after SSH is closed