The remote installation of wdlinux does not worry about unexpected disconnection or mysql compilation gets stuck for a long time.

Source: Internet
Author: User
SSH remote session management tool-screen tutorial 1. what is the screen command? Screen is a full-Screen window manager that allows multiple processes to reuse one physical terminal. There is a session concept in Screen. you can create multiple screen windows in a screen session. for example, the SSH remote session management tool-screen tutorial
I. What is the screen command?
Screen is a full-Screen window manager that allows multiple processes to reuse one physical terminal. Screen has the concept of session. you can create multiple screen windows in one screen session, just like operating a real telnet/SSH connection window in each screen window.
[With Screen, you only need to execute sh in. sh, and then you can close ssh for tea, go out to work, or use your computer to play other, office or something! Ignore the installation progress!
The wdlinux installation time is about 2-5 hours! You only need to reconnect to ssh every two hours to resume the Screen session and check whether the compilation and installation are complete! You don't need to check the entire installation process. you just need to go to Screen to execute it !]

II. how to install the screen command?
The screen command is installed in most of the other streamlined systems or custom systems. if the screen command is not installed, the CentOS system can execute: Yum install screen;
Run Debian/Ubuntu: Apt-get install screen.

3. how to use the screen command?

1. common usage
1.1 create a screen session
Run the following command first: Screen-S lamp, Screen creates a session named lamp.

[After creating a lamp session, you can run the installation. after sh in. sh is executed, enter the serial number of the combination to be installed. Next, the installation will be fully automated until the installation is complete,
During this period, you can close SSH or your computer at any time, and the installation process is still ongoing on the server]

1.2 exit or close the ssh session to keep the execution of the tasks or programs in the screen session
When you need to temporarily exit (the program in the session will not be closed and is still running), you can press the shortcut key Ctrl + a d (that is, press Ctrl, and then press a, d)

1.3 resume the screen session. you will see that it is still being installed without stopping it!
When you return, you can execute the following code: Screen-r lampYou can recover to the working interface of the previously created lamp session.

If the name of the created Scerrn session is missing or the session name is not specified at the time
Run the following command: Screen-lsScreen will list the existing sessions, 11791. lnmp is the lamp session created by screen. the lamp session has been temporarily exited, so the status is Detached. when screen-r lamp is used, the status changes to Attached, 11791 is the process ID of the screen session. It can also be used to restore the session: Screen-r 11791

1.4 disable screen sessions
Run: Exit[Screen is terminating] indicates that the screen session has been successfully exited.

3. common shortcut keys
Ctrl + a c: create a window in the current screen session
Ctrl + a w: Window list
Ctrl + a n: Next window
Ctrl + a p: Previous window
Ctrl + a 0-9: switch between 0th windows and 9th windows

Original link http://www.wdlinux.cn/bbs/thread-1604-1-1.html
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.