• 《如何将windows上的软件包或文件上传到linux服务上》


    如何将windows上的软件包或文件上传到linux服务上,下一句就是如何让将linux的文件下载到win上。哈哈

     方法不止这一种,有超多的方法,要是虚拟机,它自带的有share这个选项,你可以点击vw——set——potion——share

    还有以前记得有个软件,打开以后可以直接打开win和linux的目录文件,这接拉托就好了。

    大部分都是借助一些远程工具软件,putty、xshell、SecureCRT ....我主要说这种方法:

    我用的是xshell,首先是要软件连接到你的linux主机,

    sz:下载

    rz:上传

    下面直接代码哈:

    提示下面命令找不到的请点击这里

    [root@slave-2 ~]# sz
    -bash: sz: command not found
    [root@slave-2 ~]# rz
    -bash: rz: command not found
    [root@slave-2 ~]# 
    [sztx@localhost 01]# sz
    -bash: sz: command not found
    [sztx@localhost 01]# rz
    -bash: rz: command not found
    [sztx@localhost 01]#
    
    [sztx@localhost 01]# yum search sz
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: centos.01link.hk
     * epel: ftp.riken.jp
     * extras: centos.01link.hk
     * updates: centos.01link.hk
    ============================================== N/S Matched: sz ==============================================
    lrzsz.x86_64 : The lrz and lsz modem communications programs
    
      Name and summary matches only, use "search all" for everything.
    [sztx@localhost 01]# yum install -y lrzsz
    Loaded plugins: fastestmirror
    Setting up Install Process
    Loading mirror speeds from cached hostfile
     * base: centos.01link.hk
     * epel: mirror.pregi.net
     * extras: centos.01link.hk
     * updates: centos.01link.hk
    Resolving Dependencies
    --> Running transaction check
    ---> Package lrzsz.x86_64 0:0.12.20-27.1.el6 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    =============================================================================================================
     Package               Arch                   Version                             Repository            Size
    =============================================================================================================
    Installing:
     lrzsz                 x86_64                 0.12.20-27.1.el6                    base                  71 k
    
    Transaction Summary
    =============================================================================================================
    Install       1 Package(s)
    
    Total download size: 71 k
    Installed size: 159 k
    Downloading Packages:
    lrzsz-0.12.20-27.1.el6.x86_64.rpm                                                     |  71 kB     00:00     
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing : lrzsz-0.12.20-27.1.el6.x86_64                                                             1/1 
      Verifying  : lrzsz-0.12.20-27.1.el6.x86_64                                                             1/1 
    
    Installed:
      lrzsz.x86_64 0:0.12.20-27.1.el6                                                                            
    
    Complete!
    [sztx@localhost 01]# 

    下面我们来看看上传的过程:当你输入rz命令回车,它会跳出一个谈话框,让你选择文件。

    点中你想要上传的文件,点击打开。会出现上传的过程,我的文件可能大点,要是小文件,秒到。

    下面就上传成功了,上传到你当前路径下。

    下面来看看下载命令sz的使用。我当前的路径root是家目录,下载那个文件、

    下载成功后会下载到win的目录中。

    就实现了在xshell上直接在linux机器上上传下载操作。

  • 相关阅读:
    1085 PAT单位排行
    安装MongoDB并且添加用户
    同源政策,发送请求时携带cookie信息
    博客园文章编辑时实现语法高亮
    template中的时间格式如何修改
    Node模块下载路径的更改设置
    JavaScript--遍历
    JavaScript--作用域
    JavaScript--arguments
    JavaScript--apply&call
  • 原文地址:https://www.cnblogs.com/Crazy-Liu/p/10869687.html
Copyright © 2020-2023  润新知