linux下screen版本,在Linux (RHEL/CentOS 7/8 )中,如何使用4个简单步骤安装Screen命令

在本文中,我通过4个简单步骤指导您完成在Linux(RHEL/CentOS 7/8)中安装Screen命令。你遇到在Linux会话中运行一些重要任务,但由于某些问题而突然中断了会话,任务在两个会话之间结束,

在Linux中安装Screen命令(RHEL /CentOS )

步骤1:先决条件

a)你应该运行 RHEL / CentOS 7/8 系统系统系统系统。

b)你应该在你的系统中安装yum程序。

c)您应该具有sudo权限,才能在系统中运行特权命令。

步骤2:更新系统

首先,你需要使用yum update -y命令更新你的系统,如下所示,[root@localhost ~]# yum update -yLoaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirrors.praction.in

* epel: mirror.telkomuniversity.ac.id

* extras: mirrors.praction.in

* updates: mirrors.praction.in

Resolving Dependencies

--> Running transaction check

---> Package ca-certificates.noarch 0:2019.2.32-76.el7_7 will be updated

---> Package ca-certificates.noarch 0:2020.2.41-70.0.el7_8 will be an update

---> Package dbus.x86_64 1:1.10.24-13.el7_6 will be updated

---> Package dbus.x86_64 1:1.10.24-14.el7_8 will be an update

---> Package dbus-libs.x86_64 1:1.10.24-13.el7_6 will be updated

---> Package dbus-libs.x86_64 1:1.10.24-14.el7_8 will be an update

---> Package kernel.x86_64 0:3.10.0-1127.13.1.el7 will be installed

---> Package kernel-headers.x86_64 0:3.10.0-1127.10.1.el7 will be updated

---> Package kernel-headers.x86_64 0:3.10.0-1127.13.1.el7 will be an update

---> Package kernel-tools.x86_64 0:3.10.0-1127.10.1.el7 will be updated

---> Package kernel-tools.x86_64 0:3.10.0-1127.13.1.el7 will be an update

---> Package kernel-tools-libs.x86_64 0:3.10.0-1127.10.1.el7 will be updated

---> Package kernel-tools-libs.x86_64 0:3.10.0-1127.13.1.el7 will be an update

---> Package libgudev1.x86_64 0:219-73.el7_8.6 install screen will be updated

---> Package libgudev1.x86_64 0:219-73.el7_8.8 install screen will be an update

---> Package microcode_ctl.x86_64 2:2.1-61.6.el7_8 install screen will be updated

---> Package microcode_ctl.x86_64 2:2.1-61.10.el7_8 will be an update

---> Package python-perf.x86_64 0:3.10.0-1127.10.1.el7 will be updated

---> Package python-perf.x86_64 0:3.10.0-1127.13.1.el7 will be an update

步骤3:在Linux中安装Screen命令

成功更新系统后,您现在需要使用 yum install screen -y 命令,如下所示。[root@localhost ~]# yum install screen -yLoaded plugins: fastestmirror

Determining fastest mirrors

epel/x86_64/metalink | 6.5 kB 00:00:00

* base: mirrors.praction.in

* epel: mirror.telkomuniversity.ac.id

* extras: mirrors.praction.in

* updates: mirrors.praction.in

base | 3.6 kB 00:00:00

epel | 4.7 kB 00:00:00

(1/3): updates/7/x86_64/primary_db | 3.0 MB 00:00:01

(2/3): epel/x86_64/primary_db | 6.9 MB 00:00:04

(3/3): epel/x86_64/updateinfo | 1.0 MB 00:00:49

Resolving Dependencies

--> Running transaction check

---> Package screen.x86_64 0:4.1.0-0.25.20120314git3c2946.el7 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================

Package Arch Version Repository Size

========================================================================================================================================================================

Installing:

screen x86_64 4.1.0-0.25.20120314git3c2946.el7 base 552 k

Transaction Summary

========================================================================================================================================================================

Install 1 Package

Total download size: 552 k

Installed size: 914 k

Downloading packages:

screen-4.1.0-0.25.20120314git3c2946.el7.x86_64.rpm | 552 kB 00:00:00

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Installing : screen-4.1.0-0.25.20120314git3c2946.el7.x86_64 1/1

Verifying : screen-4.1.0-0.25.20120314git3c2946.el7.x86_64 1/1

Installed:

screen.x86_64 0:4.1.0-0.25.20120314git3c2946.el7

Complete!

步骤4:检查Screen命令版本

你可以使用screen -v命令检查screen命令版本,如下所示,[root@localhost ~]# screen -vScreen version 4.01.00devel (GNU) 2-May-06

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值