一、参考链接

阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区

centos镜像-centos下载地址-centos装置教程-阿里巴巴开源镜像站

lrzsz | Sail

二、lrzsz性能介绍

<font color=red>lrzsz</font>是一款在linux里可代替ftp上传和下载的程序。应用这个软件程序只须要一个命令就能够疾速解决Windows端和Linux端的文件上传和下载问题。非常不便。

<font color=red>注意事项:该软件适宜传输小文件,超过4GB的大文件无奈进行传输。</font>

三、装置操作步骤

1、Linux端

阐明:本实验室基于CentOS 7.9零碎装置应用的。

[root@centos ~]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core)

查找lrzsz包

# yum provides lrzsz
[root@centos ~]# yum provides lrzszLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * epel: ftp-stud.hs-esslingen.delrzsz-0.12.20-36.el7.x86_64 : The lrz and lsz modem communications programsRepo        : baselrzsz-0.12.20-36.el7.x86_64 : The lrz and lsz modem communications programsRepo        : @base[root@centos ~]# 

装置lrzsz包

# yum install -y  lrzsz
[root@centos ~]# yum install -y  lrzszLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * epel: ftp-stud.hs-esslingen.dePackage lrzsz-0.12.20-36.el7.x86_64 already installed and latest versionNothing to do

2、Windows端

留神:应用Xshel、SecureCRT近程连贯软件,通过ssh/telnet连贯Linux端服务器能够反对应用。

3、测试应用

参数阐明

sz从Linux端下载文件至Windows端
rz从Windows端上传文件至Linux端

更多详细信息,执行<font color=red>man sz/rz</font>命令进行查看

从Linux端下载文件至Windows端

#在Linux端创立一个名为xybdiy的配置文件# vim xybdiy 增加如下内容:Hello World!xybdiy按:wq保留退出。#执行如下命令从Linux端下载此配置文件至Windows端# sz xybdiy 呈现如下"浏览文件夹"的选项框,抉择寄存地位。
抉择下载文件寄存的地位。

下载实现,至Windows端查看。

在Windows端关上此配置文件查看。

从Windows端上传文件至Linux端

在Windows端,批改方才下载的配置文件名称和增加内容。

在Linux端,执行<font color=red>rz</font>命令,抉择须要从Windows上传的文件。

传送胜利。

在Linux端查看配置文件xybdiy-windows
[root@centos ~]# lltotal 16-rw-------. 1 root root 1531 Feb  9 11:55 anaconda-ks.cfg-rw-r--r--  1 root root  219 Feb 15 17:17 cook-rw-r--r--  1 root root   20 Feb 19 14:55 xybdiy-rw-r--r--  1 root root   66 Feb 19 15:01 xybdiy-windows[root@centos ~]# cat xybdiy-windows Hello World!xybdiy# Windows端上传至Linux端Hello xybDIY![root@centos ~]# 

至此,lrzsz工具测试实现。