简体   繁体   中英

Exiting an ongoing Node.js server in linux

When I run my node server node server.js through SSH, the server starts and operates properly, however, I am left at the command prompt on a blank line, and no matter what I try to do, I can't "escape" out of that back to root /]# . Is it necessary for me to terminate the session completely and rerun a new SSH session to be able to operate on the prompt again?

I'm sure this is a completely basic problem with a completely basic solution, I just can't for the life of me seem to "escape" out of this back to the command line. It would seem unlikely that it would be necessary to completely exit out of PuTTy and start a new session just to terminate it..

要发布答案,您是否尝试按Ctrl + C或Gabi提到的Ctrl + D ,通常会退出我通过CLI启动的大多数服务器。

您可以使用GNU Screen在此处快速参考)在现有的PuTTy会话中同时使用多个终端接口。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM