Implement ftp vm in Linux

Source: Internet
Author: User

In Linux, we can use ftp service programs such as wu-FTP, tftp-server, proftpd, gssftp, and vsftp to build an FTP server. Wu-ftp (Washington University Ftp) is widely used in a variety of Linux releases and a variety of Unix (including ibm aix, FreeBSD, HP-UX, various BSD, Solaris, etc) at the same time, it occupies more than 50% of the internet, and now the Linux release version has 2.6 of wu-ftp, the following uses it as an example to describe how to implement an ftp vm in Linux.

Virtual Host installation requirements

Wu-ftpd provides the VM function. It uses an FTP software to provide different FTP servers on the same host, and uses host names or IP addresses to differentiate different virtual hosts.

Wu-ftp has two installation methods: rpm and tar. Rpm installation is relatively simple. You can directly install it through rpm ivh wu-ftp *. rpm. The following describes how to install tar.

For Linux without RPM installation package, you can download a source tar code package from the http://www.wu-ftpd.org, so that you can better customize the various functions supported by wu-ftp as needed, it includes some additional upload speed, Vm, and other functions.

1. Unzip the package tar-zxvf wu-ftpd-current.tar.gz:

# Cd wu-ftp

2. Additional functions required for Configuration:

#./Configure -- enable-virtual

This enable-virtual parameter must be set. By setting this parameter, the service of the virtual host is provided, and the FTP server throughput is increased, in this way, wu-ftp has the VM function.

3. Compile and install

# Make

# Make install

 

After completing the preceding steps, the server has been successfully installed on the Linux system. Now the system should include

/Etc/ftpaccess

/Etc/ftpconversions

/Etc/ftpgroups

/Etc/ftphosts

/Etc/ftpusers

Configuration file and

/Usr/bin/ftpcount

/Usr/bin/ftpwho

/Usr/sbin/ftprestart

/Usr/sbin/ftpshut

/Usr/sbin/in. ftpd

And other executable programs, including some help and man documents. If these files are included in the system, the FTP server is successfully installed.

There are two files in these files about the virtual host configuration. The ftpservers file controls that when the customer logs on to different virtual hosts, the server uses different configuration files for function settings. For example, add the following two statements to ftpservers:

172.20.66.10/etc/ftpaccess.1

172.20.66.20/etc/ftpaccess.2

These two Parameters specify that when the user accesses from 10 IP addresses, the server specifies the ftpaccess.1 configuration file, and when the user accesses from 20 IP addresses, the server specifies the ftpaccess.2 configuration file. This file must be used with the configuration of the VM below.

  • 2 pages in total:
  • Previous Page
  • 1
  • 2
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.