安裝SCREEN
[root@centos6 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 51475068 5052580 43801048 11% /
tmpfs 1019172 76 1019096 1% /dev/shm
/dev/sda3 51475068 53064 48800564 1% /app
/dev/sda1 999320 40364 906528 5% /boot
/dev/sr0 3878870 3878870 0 100% /media/CentOS_6.9_Final 說明光盤已掛載
[root@centos6 ~]#cd /media/CentOS_6.9_Final
[root@centos6 CentOS_6.9_Final]# ls
CentOS_BuildTag isolinux RPM-GPG-KEY-CentOS-Debug-6
EFI Packages RPM-GPG-KEY-CentOS-Security-6
EULA RELEASE-NOTES-en-US.html RPM-GPG-KEY-CentOS-Testing-6
GPL repodata TRANS.TBL
images RPM-GPG-KEY-CentOS-6
[root@centos6 CentOS_6.9_Final]# cd Packages/
[root@centos6 Packages]# ls screen
screen-4.0.3-19.el6.x86_64.rpm
[root@centos6 Packages]# rpm -i screen-4.0.3-19.el6.x86_64.rpm
warning: screen-4.0.3-19.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
package screen-4.0.3-19.el6.x86_64 is already installed
如果光盤沒有自動掛載,首先確保在VMware的設置中加載了光盤的iso鏡像,并勾選了已連接。
[root@centos7 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 48803552 3703628 45099924 8% /
devtmpfs 1001392 0 1001392 0% /dev
tmpfs 1016064 88 1015976 1% /dev/shm
tmpfs 1016064 9176 1006888 1% /run
tmpfs 1016064 0 1016064 0% /sys/fs/cgroup
/dev/sda3 48803552 32944 48770608 1% /app
/dev/sda1 972452 156004 816448 17% /boot
tmpfs 203216 12 203204 1% /run/user/0
[root@centos7 ~]# mount /dev/sr0 /media/
mount: /dev/sr0 is write-protected, mounting read-only
[root@centos7 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 48803552 3703628 45099924 8% /
devtmpfs 1001392 0 1001392 0% /dev
tmpfs 1016064 88 1015976 1% /dev/shm
tmpfs 1016064 9176 1006888 1% /run
tmpfs 1016064 0 1016064 0% /sys/fs/cgroup
/dev/sda3 48803552 32944 48770608 1% /app
/dev/sda1 972452 156004 816448 17% /boot
tmpfs 203216 12 203204 1% /run/user/0
/dev/sr0 8086368 8086368 0 100% /media
[root@centos7 ~]# cd /media/
[root@centos7 media]# ls
CentOS_BuildTag GPL LiveOS RPM-GPG-KEY-CentOS-7
EFI images Packages RPM-GPG-KEY-CentOS-Testing-7
EULA isolinux repodata TRANS.TBL
[root@centos7 media]# cd Packages/
[root@centos7 Packages]# ls screen
screen-4.1.0-0.23.20120314git3c2946.el7_2.x86_64.rpm
[root@centos7 Packages]# rpm -i screen-4.1.0-0.23.20120314git3c2946.el7_2.x86_64.rpm
screen
screen 進入screen 名字以當前終端名.主機名前綴
screen -S screenname 新建一個叫screenname的session
screen -ls 或 –list 查看當前所有的screen
screen -r screenname 進入一個screen。
ctrl+d 或 exit 退出當前screen(會話)。
實現2個或多個頁面的遠程交流
要在同一個ip地址,鏈接同一用戶下創建頁面
先查在是否在不同終端
開啟screen會話
在右邊窗口中輸入screen -ls,查看是否連接
在右邊窗口輸入screen –x help,左邊的窗口不影響
實現2個窗口連接
原創文章,作者:zenyanxiao,如若轉載,請注明出處:http://www.www58058.com/81212