安装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.178linux.com/81212