Building Linux and accessing FTP sites

Source: Internet
Author: User
Tags ftp login

1.1 Questions

This example requires the rapid construction of the FTP Web server on a Linux host, the successful implementation of Web page deployment and access to complete the following tasks:

    1. Setting up an FTP service on a CentOS7 virtual machine

      Installing the VSFTPD Package
      Set the system service VSFTPD to boot and start the service at the same time
      Create a new user vip2017, set the password to 1234567

    2. Access to native FTP resources via Firefox firefox browser

      Native Ffirefox browser access FTP://127.0.0.1/, confirm FTP resources
      New file A.txt under/var/ftp/, confirm FTP resource changes after refreshing the browser

    3. Managing FTP resources through WinSCP clients

      Open the WINSCP program from the win client and log on to the FTP server as a user vip2017
      Test file upload/download function

1.2 Steps

The implementation of this case needs to follow the steps below.

Step one: Build the FTP service on the CentOS7 virtual machine

1) Install the VSFTPD package

[[email protected] ~]# yum  -y  install  vsftpd.. ..已安装:  vsftpd.x86_64 0:3.0.2-21.el7                              完毕!

2) Set the system service VSFTPD to boot and start the service at the same time

[[email protected] ~]# systemctl  enable  vsftpdCreated symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.[[email protected] ~]# systemctl  restart  vsftpd

3) Create a new user vip2017 and set the password to 1234567

[[email protected] ~]# useradd  vip2017                          //添加用户[[email protected] ~]# passwd  vip2017                          
Step two: Access the native FTP resources via Firefox firefox browser

1) Native Firefox browser access FTP://127.0.0.1/, confirm FTP resources

To navigate to the contents of the server/var/ftp/directory, as shown in 3,

2) Create a new file A.txt under/var/ftp/and confirm the change of FTP resource after refreshing the browser

Create a new test file:

[[email protected] ~]# touch  /var/ftp/a.txt[[email protected] ~]# ls  /var/ftp/                          //确认目录内容a.txt  pub

Refresh Firefox Browser page, you can see the new addition of the file appears,-4 shows.

!!!! Note that when the FTP server is accessed anonymously through a Web browser, it is generally only possible to download the document resources that can not be uploaded, corresponding to the/var/ftp/directory on the VSFTPD server.

Step three: Manage FTP resources through WinSCP clients

1) Open the WINSCP program from the win client and log in to the FTP server with user vip2017

Open the WinSCP.exe program in the real machine, fill in the FTP login information, note the connection method, server address, port, user name and password information to be correct, 5 is shown.

After successful login, you can see the user vip2017 the data in the home directory on the server on the right, as shown in 6.

2) test file upload/download function

In the WINSCP is connected to the server window, the left side of the corresponding client's document directory, the right side of the corresponding server's document directory, just select the file or directory left drag to complete the upload, download function, 7.

Building Linux and accessing FTP sites

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.