Close the program running in the background of the Aliyun Linux cloud server through the screen

I used screen npm run start
to run a Nuxt project on the Alibaba Cloud server,
now let's turn it off

We first find the screen session number of the running program through screen -ls.

The information output by the system tells us that there is only one screen session 731
insert image description here
, then we can pass

screen -r 会话编号

To visit him,
here is screen -r 731
insert image description here
, so that we can retrieve the previously started program,
just press Ctrl + C to end his operation

This way our program closes

Guess you like

Origin blog.csdn.net/weixin_45966674/article/details/130506030