In linux, the configuration process of building an ftp VM is as follows: one server has multiple FTP sites

Source: Internet
Author: User
By default, vsftp does not support setting up multiple ftp sites on the same host as IIS. However, vsftp cannot establish multiple ftp sites on the same host, the method is as follows: 1. Add a virtual IP address (192.168.0.5 of eth0) 1. ifconfigeth0: 0192.168.0.5242. Create a virtual FTP service user

By default,FtpUnlike IIS, you can create multiple ftp sites on the same host, but it is not impossible to create multiple ftp sites on the same host. The method is as follows:

 

1. Add a virtual IP address (the IP address 192.168.0.5 of eth0)

 

1.IfconfigEth0: 0 192.168.0.5/24

 

2. Create a virtual FTP service user

  

UseraDd-D/var/ftp2-s/sbin/nologin ftp2

Chmod-R 755/var/ftp2

Chown-R root: root/var/ftp2

Mkdir-M 755/var/ftp2/pub

Chown ftp2: root/var/ftp2/pub

 

3. Prepare the configuration file of the virtual FTP server.

 

  Cp/Etc/vsfptd/vsftpd. conf/etc/vsfptd/vsftpd1.conf

 

4. Modify/etc/vsftpd/vsfptd. conf.

 

1. listen_address = 192.168.0.4

 

5. Modify/etc/vsftpd/vsfptd1.conf

 

Listen_address = 192.168.0.5

Ftp_username = ftp2

Local_root =/var/ftp2

Linuxso Editor: what is the use of a single IP address server .. It is okay to let the server listen to different ports, but it is still uncomfortable.

Is there a way to support host headers Like apache Virtual Hosts...

Related Article

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.