Screen on Centos 6

From vpsget wiki
Revision as of 11:34, 19 June 2015 by Max (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Chek the screen installation in your system:

which screen

If installation is not performed, install epel repository:

yum install epel-release

Install screen:

yum install screen

If you got the following error “Cannot retrieve metalink for repository: epel. Please verify its path and try again” just use this commands:

sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo
yum –y update

And try to install screen again.

When screen is installed, start new screen:

screen

Try to install some heavy software, cpanel for example:

cd /home
wget -N http://httpupdate.cpanel.net/latest
sh latest

Then press Ctrl+a+d. You will see the following inscription:

[detached]

Now your installation is continued in screen, and you can exit your putty session or start any other installation. Cpanel will still be installed.

You can check your screen list by command:

screen ls

The next information will be appear:

There is a screen on:
22570.pts-2.server  (Detached)
1 Socket in /var/run/screen/S-root.

If you want to connect to some screen:

screen -r 22570.pts-2.server 

For exiting of current screen use this command :

exit

Screen has many different functions, for more detail information use:

screen –help