Last update at :2024-05-03,Edit by888u
Taking the CentOS system as an example, we often connect to servers or VPS jobs through SSH, and it takes a long time to compile programs, such as LNMP, DA, etc. If the network is suddenly disconnected at this time, it will be a hassle! We can install Screen to prevent this situation. Even if the connection to the remote server is disconnected, compilation will still continue. After we reconnect, we can return to the original interface. The installation may have been completed.
Create a screen session named lnmp
#screen -S lnmp
If the prompt cannot find the command, we can run the installation command: yum install screen
View all screen sessions
#screen -ls
The shortcut key Ctrl+a+d will leave the screen after saving the current screen session.
Exit close screen session
#exit
Delete the session named lnmp. It should be deleted after the related tasks are completed.
#screen -wipe lnmp
Enter the session named lnmp. For example, after we use Ctrl+a+d or close ssh, we want to re-enter the session to view
#screen -r lnmp
Recommended site search: Mainland China IP agency domain name space registration, website registration price, Hong Kong host, free server website, Yangzhou dual-line server, Wanwang domain name registration official website, Korean server recommendation, website IP query, Cheap virtual host,
发表评论