A list,

  • Install Lrzsz according to the main CentOS infrastructure (Nginx, Git, Lrzsz).

  • LRZSZ is a Linux application that can replace FTP upload (RZ) and download (SZ).

CentOS (Server)

  • Install LRZSZ

    $ yum -y install lrzsz
    Copy the code

For the following installation steps, select the corresponding system


Third, Windows client

  • In Windows, Telnet/SSH clients (such as Xshell) that support ZModem are required to connect to the server.

    • Running the command rz: Xshell will bring up the file selection dialog box. After selecting the file, close the dialog box and upload the file to the current directory

    • Run the sz XXX: Xshell command to automatically download the XXX file in the current directory of the server to the local PC.

Fourth, Mac

  • Mac terminals do not support LRZSZ. You need to download and install Iterm2

  • Install iterm2

  • Install Homebrew (already installed, no need to install again)

  • Install LRZSZ

    $ brew install lrzsz
    Copy the code
  • Download and install Automatic ZModerm for iTerm2

    1. Run the following command on the terminal to go to the bin directory.

    $ cd /usr/local/bin
    Copy the code

    2. Download the iterm2-zmodem project and add the iterm2-send-zmodem.sh and iterm2-recv-zmodem.sh scripts to the /usr/local/bin folder.

    Note: **B0100000023be50 **B0100000023be50 **B0100000023be50 **B0100000023be50 Therefore, it is recommended to download the project file and manually drag it in. I tried this step again and again. The command to download the file must be stuck when using it.

    3. After the script is downloaded, run the following command to add the execution permission:

    $ sudo chmod 777 /usr/local/bin/iterm2-*
    Copy the code
  • Configuration iTerm2

    Start iTerm2, click on Profiles –> Open Profiles from the top menu. In the Profiles panel that pops up, click Edit Profiles –> Advanced –> Edit Triggers –> Configure as follows:

    Regular expression Action Action
    \*\*B0100 Run Silent Coprocess /usr/local/bin/iterm2-send-zmodem.sh
    \*\*B00000000000000 Run Silent Coprocess /usr/local/bin/iterm2-recv-zmodem.sh

  • After the configuration is complete, restart iTerm2 and prepare for the test

    • There is a problem with the installation.

    • Run the rz command without connecting to the Linux server.

    • Connect to a Linux server, run the rz command, upload an index. HTML file to /home/test/, and run the page from the server.